Merge pull request #1857 from velesin/qunit_not_assertion

Adds new QUnit assertion ("not") complementary to built-in "ok"
This commit is contained in:
Régis Hanol 2014-01-24 04:08:53 -08:00
commit da0d52fb12
2 changed files with 6 additions and 1 deletions

View File

@ -14,6 +14,7 @@
"integration",
"test",
"ok",
"not",
"expect",
"equal",
"blank",

View File

@ -17,4 +17,8 @@ function blank(obj, text) {
function containsInstance(collection, klass, text) {
ok(klass.detectInstance(_.first(collection)), text);
}
}
function not(state, message) {
ok(!state, message);
}