Skip to content

Commit d3a1acd

Browse files
committed
small fix to capture failures properly in test suite runner
1 parent bf59385 commit d3a1acd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/runner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ $(function() {
2424
},
2525

2626
onTestDone: function( name, bad, assertCount ) {
27-
QUnit.ok( !bad, name );
28-
self.recordAssertions( assertCount - 1, name );
27+
QUnit.ok( !(bad > 0), name );
28+
self.recordAssertions( assertCount - bad, name );
2929
},
3030

3131
onFrameDone: function( failed, passed, total, runtime ){

0 commit comments

Comments
 (0)