Skip to content
Permalink
Browse files

Use QUnit.push instead of assertion method for custom assertions to get

correct filename and line number output
  • Loading branch information
jzaefferer committed Mar 20, 2011
1 parent f0dbb83 commit 93fd447493af07756d4f87aab8b5a7fd010e8593
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/unit/testsuite.js
@@ -96,7 +96,8 @@ window.domEqual = function( selector, modifier, message ) {
var expected = extract($(selector));
modifier($(selector));

deepEqual( extract($(selector)), expected, message );
var actual = extract($(selector));
QUnit.push( QUnit.equiv(actual, expected), actual, expected, message );
}

}());

0 comments on commit 93fd447

Please sign in to comment.
You can’t perform that action at this time.