This module is used for writing unit tests for your applications, you can
access it with require('assert')
.
Tests if actual
is equal to expected
using the operator provided.
Tests if value is a true
value, it is equivalent to assert.equal(true, value, message);
Tests shallow, coercive equality with the equal comparison operator ( ==
).
Tests shallow, coercive non-equality with the not equal comparison operator ( !=
).
Tests for deep equality.
Tests for any deep inequality.
Tests strict equality, as determined by the strict equality operator ( ===
)
Tests strict non-equality, as determined by the strict not equal operator ( !==
)
Expects block
to throw an error.
Expects block
not to throw an error.
Tests if value is not a false value, throws if it is a true value. Useful when testing the first argument, error
in callbacks.