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
If this is something you really, really want, you can add it with QUnit.extend()
:
QUnit.extend(QUnit.assert, {
notOk: function (result, message) {
message = message || (!result ? "okay" : "failed, expected argument to be falsey, was: " +
QUnit.dump.parse(result));
QUnit.push(!result, result, false, message);
},
});