From c07ead6f572617a9738bbce65e8bfa8132b98f1d Mon Sep 17 00:00:00 2001 From: Vivin Paliath Date: Thu, 16 Aug 2012 13:35:06 -0700 Subject: [PATCH] issue #307 Approach #1: Forgot to add "expect" to one line where an expect-related failure is reported. --- qunit/qunit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qunit/qunit.js b/qunit/qunit.js index b10789dee..4449dc49e 100644 --- a/qunit/qunit.js +++ b/qunit/qunit.js @@ -162,7 +162,7 @@ Test.prototype = { finish: function() { config.current = this; if ( config.requireExpects && this.expected == null ) { - QUnit.pushFailure( "Expected number of assertions to be defined, but expect() was not called.", this.stack ); + QUnit.pushFailure( "Expected number of assertions to be defined, but expect() was not called.", this.stack, "expect" ); } else if ( this.expected != null && this.expected != this.assertions.length ) { QUnit.pushFailure( "Expected " + this.expected + " assertions, but " + this.assertions.length + " were run", this.stack, null, "expect" ); } else if ( this.expected == null && !this.assertions.length ) {