deepEqual()

A deep recursive comparison, working on primitive types, arrays, objects, regular expressions, dates and functions.

equal()

A non-strict comparison, roughly equivalent to JUnit’s assertEquals.

notDeepEqual()

An inverted deep recursive comparison, working on primitive types, arrays, objects, regular expressions, dates and functions.

notEqual()

A non-strict comparison, checking for inequality.

notPropEqual()

A strict comparison of an object’s own properties, checking for inequality.

ok()

A boolean check, equivalent to CommonJS’s assert.ok() and JUnit’s assertTrue(). Passes if the first argument is truthy.

propEqual()

A strict type and value comparison of an object’s own properties.

throws()

Test if a callback throws an exception, and optionally compare the thrown error.