diff --git a/.jshintrc b/.jshintrc index 7584833..daf41fe 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,5 +1,6 @@ { "curly": true, "eqeqeq": true, - "undef": true + "undef": true, + "mocha": true } diff --git a/test/integration/init_game.spec.js b/test/integration/init_game.spec.js index 019bbe5..30d583c 100644 --- a/test/integration/init_game.spec.js +++ b/test/integration/init_game.spec.js @@ -1,3 +1,5 @@ +/* global nsn: true, expect: true */ + describe('main', function(){ describe('initGame()', function(){ @@ -12,6 +14,6 @@ describe('main', function(){ it('resizes screen'); it('runs Bootstrap init'); - }) + }); }); diff --git a/test/unit/engine.spec.js b/test/unit/engine.spec.js index 96e3284..a162bba 100644 --- a/test/unit/engine.spec.js +++ b/test/unit/engine.spec.js @@ -1,3 +1,5 @@ +/* global nsn: true, expect: true, sinon: true */ + describe('Engine', function(){ before(function(){ nsn.GameSound = sinon.stub(); @@ -30,6 +32,6 @@ describe('Engine', function(){ it('has init()', function(){ expect(nsn.Engine).to.respondTo('init'); }); - }) + }); });