You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There doesn't seem to be a the negation (inverse?) for the assert() style ok() assertion.
assert.notOk(value);
Of course it's possible to use a different tests, which have same effect but they break the symmetry and descriptiveness when you have things that need to be ok and others need to be not-ok.
//Test for falsy
assert.ok(!myValue);
assert.isTrue(!myValue);
assert.isFalse(!!myValue);
assert.equals(myValue, false);
//..more
It's so glaring omission, is there a reason not to have it?
The text was updated successfully, but these errors were encountered:
There doesn't seem to be a the negation (inverse?) for the assert() style ok() assertion.
Of course it's possible to use a different tests, which have same effect but they break the symmetry and descriptiveness when you have things that need to be ok and others need to be not-ok.
It's so glaring omission, is there a reason not to have it?
The text was updated successfully, but these errors were encountered: