Assertions

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

References

  • http://nodejs.org/api/assert.html
0 Comments for this cheatsheet. Write yours!