Chai.js Assert(expression, message)

Chai.js Assert(expression, message)
0

#1

@param{ Mixed }expressionto test for truthiness

  • @param{ String }messageto display on error

Write your own test expressions.

assert('foo' !== 'bar', 'foo is not bar');
assert(Array.isArray([]), 'empty arrays are arrays');

details: http://chaijs.com/api/assert/


#2