Skip to content

Commit

Permalink
Fix test errors and add mocha to jshint configs.
Browse files Browse the repository at this point in the history
Can't fix "Expected an assignment or function call and instead saw an expression."
because chai uses properties to call an assertion.
Problem was discussed in: chaijs/chai#41
  • Loading branch information
lmatiolis committed Apr 3, 2015
1 parent 9d300bc commit 51568aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"curly": true,
"eqeqeq": true,
"undef": true,
"browser": true
"browser": true,
"mocha": true
}
4 changes: 3 additions & 1 deletion test/integration/init_game.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* global nsn: true, expect: true */

describe('main', function(){

describe('initGame()', function(){
Expand All @@ -12,6 +14,6 @@ describe('main', function(){
it('resizes screen');

it('runs Bootstrap init');
})
});

});
4 changes: 3 additions & 1 deletion test/unit/engine.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* global nsn: true, expect: true, sinon: true */

describe('Engine', function(){
before(function(){
nsn.GameSound = sinon.stub();
Expand Down Expand Up @@ -30,6 +32,6 @@ describe('Engine', function(){
it('has init()', function(){
expect(nsn.Engine).to.respondTo('init');
});
})
});

});

0 comments on commit 51568aa

Please sign in to comment.