mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Adds new QUnit assertion ("not") complementary to built-in "ok"
This commit is contained in:
@ -14,6 +14,7 @@
|
||||
"integration",
|
||||
"test",
|
||||
"ok",
|
||||
"not",
|
||||
"expect",
|
||||
"equal",
|
||||
"blank",
|
||||
|
@ -18,3 +18,7 @@ function blank(obj, text) {
|
||||
function containsInstance(collection, klass, text) {
|
||||
ok(klass.detectInstance(_.first(collection)), text);
|
||||
}
|
||||
|
||||
function not(state, message) {
|
||||
ok(!state, message);
|
||||
}
|
||||
|
Reference in New Issue
Block a user