Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 349 Bytes

Chai-Assert.md

File metadata and controls

13 lines (9 loc) · 349 Bytes

Assert(expression, message)

  • @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/