Nodejs Assert Cheat Sheet

From WikiOD

Here is the cheatsheat of Nodejs Assert and basic guide on how to use Nodejs Assert

Assertions[edit | edit source]

assert(val)
assert.equal(actual, expected)
assert.notEqual(a, e)
assert.deepEqual(a, e)
assert.notDeepEqual(a, e)
assert.throws(fn)

References[edit | edit source]

Credit:rstacruz