Custom matchers #39

Closed
NV opened this Issue Sep 13, 2010 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

NV commented Sep 13, 2010

Would be great to define custom matchers like this:

QUnit.sameOwnProperties = function(actual, expected, message) {
  QUnit._push(myCompare(actual, expected), actual, expected, message);
}

To do that we have to move push function from the closure into QUnit._push (or QUnit.push, whatever).

Owner

jzaefferer commented Nov 3, 2010

Expose push as QUnit.push to build custom assertions. Closed by 5fb42a8

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment