Search code examples
qunit

QUnit, assert not OK?


Sorry if this is obvious, but is there a notOK or equivalent function in QUnit, if we want to assert that a method returns false?

I can't see a way to negate OK in the documentation.

I tried:

!ok...

but that didn't work.


Solution

  • You could use: ok(!method_expected_to_be_false)