QUnit,断言不行?

Dev*_*ave 3 qunit

很抱歉,如果这很明显,但在QUnit中是否有notOK或等效函数,如果我们想断言方法返回false?

我无法在文档中看到否定OK的方法.

我试过了:

!ok...
Run Code Online (Sandbox Code Playgroud)

但那没用.

Bry*_*Ash 7

你可以使用: ok(!method_expected_to_be_false)