Skip to content

Commit

Permalink
updates tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcgregor committed May 23, 2015
1 parent c9fe958 commit dfa6999
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion test/asset-loader.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var AssetLoader = require('../asset-loader');
var AssetLoader = require('../AssetLoader');

describe('asset loader', function() {
this.timeout(5000);
Expand Down
2 changes: 1 addition & 1 deletion test/graphics.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var Graphics = require('../graphics');
var Graphics = require('../Graphics');

describe('graphics', function() {
var graphics = new Graphics();
Expand Down
2 changes: 1 addition & 1 deletion test/linked-list.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var LinkedList = require('../linked-list');
var LinkedList = require('../LinkedList');

describe('linked list', function() {
var linkedList = new LinkedList();
Expand Down
4 changes: 2 additions & 2 deletions test/object-pool.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var ObjectPool = require('../object-pool');
var ObjectPool = require('../ObjectPool');

describe('object pool', function() {
var newlyCreated = 0;
Expand All @@ -26,7 +26,7 @@ describe('object pool', function() {
p.dispose(t);

expect(p.getPool().length).to.eql(1);

t = p.get();

expect(t.getId()).to.be.a('number');
Expand Down
10 changes: 5 additions & 5 deletions test/storage-utils.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

var AssetLoader = require('../asset-loader.js'),
StorageUtils = require('../storage-utils');
var AssetLoader = require('../AssetLoader.js'),
storage = require('../storage');

describe('storage utils', function() {
var key = 'testData',
Expand All @@ -12,12 +12,12 @@ describe('storage utils', function() {
};

it('should store object and return true', function(){
var saved = StorageUtils.saveJSON(key, testData);
var saved = storage.saveJSON(key, testData);
expect(saved).to.be.true;
});

it('should retrieve stored object', function(){
var loaded = StorageUtils.loadJSON(key);
var loaded = storage.loadJSON(key);
expect(loaded).to.exist;
expect(loaded.id).to.eql('foo');
expect(loaded.name).to.eql('bar');
Expand All @@ -42,7 +42,7 @@ describe('storage utils', function() {
});

it('should get image data', function(){
var dataURL = StorageUtils.getImageDataURL(loaderData);
var dataURL = storage.getImageDataURL(loaderData);
expect(dataURL.indexOf('data:image/')).to.eql(0);
});
});
2 changes: 1 addition & 1 deletion test/video-object.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var VideoPlayer = require('../video-player');
var VideoPlayer = require('../VideoPlayer');

describe('video object', function() {
this.timeout(20000); // extend timeout for this test
Expand Down

0 comments on commit dfa6999

Please sign in to comment.