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
assert(val)
assert.equal(actual, expected)
assert.notEqual(a, e)
assert.deepEqual(a, e)
assert.notDeepEqual(a, e)
assert.throws(fn)
something is a collection of cheatsheets I've written over the years. Suggestions and corrections? Send them in. I'm Rico Sta. Cruz. Check out my Today I learned blog for more.