notOk
Assert: notOk(value, message)
Tests if value is falsy. It is equivalent to assert.equal(!!value, false, message).
If value is truthy, an AssertionError is thrown with a message property set equal to the value of the message parameter. If the message parameter is undefined, a default error message is assigned. If the message parameter is an instance of an Error then it will be thrown as the error.
Parameters
value
The value to test.
message
The message to display on error.