mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Adds new QUnit assertion ("not") complementary to built-in "ok"
This commit is contained in:
parent
e3a151d66a
commit
5166abd75f
2 changed files with 6 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
|||
"integration",
|
||||
"test",
|
||||
"ok",
|
||||
"not",
|
||||
"expect",
|
||||
"equal",
|
||||
"blank",
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue