diff --git a/qunit/qunit.js b/qunit/qunit.js index 17dc6aa30..e4a8875f7 100644 --- a/qunit/qunit.js +++ b/qunit/qunit.js @@ -124,7 +124,7 @@ Test.prototype = { } }, finish: function() { - if ( this.expected && this.expected != this.assertions.length ) { + if ( this.expected != null && this.expected != this.assertions.length ) { QUnit.ok( false, "Expected " + this.expected + " assertions, but " + this.assertions.length + " were run" ); }