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 36162fd commit 3fcfc5d
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
@@ -1,5 +1,6 @@
{
"curly": true,
"eqeqeq": true,
"undef": true
"undef": 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 3fcfc5d

Please sign in to comment.