var Api = require('../lib/api');

describe('Api', function() {
    describe('token property', function() {
        it('should be set with constructor', function() {
            var token = Math.random().toString();
            var api = new Api({'token': token});
            expect(api.token).toEqual(token);
        });

        it('should throw an error when missing', function() {
            expect(function() {
                var api = new Api();
            }).toThrow();
        });
    });
});

@@ -79,17 +79,8 @@
 oken
- property
 ', f
@@ -230,16 +230,17 @@
 ew Api(%7B
+ 
 'token':
@@ -245,16 +245,17 @@
 ': token
+ 
 %7D);%0A    
@@ -338,11 +338,8 @@
 row 
-an 
 erro

Update API token spec.