Skip to content

Commit

Permalink
issue qunitjs#307
Browse files Browse the repository at this point in the history
Approach qunitjs#1: Forgot to add "expect" to one line where an expect-related
failure is reported.
  • Loading branch information
vivin committed Aug 16, 2012
1 parent 99ea1be commit c07ead6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qunit/qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit c07ead6

Please sign in to comment.