expect / should [bdd]
The BDD style allows you to write your assertions in a natural, self-describing manner.
assert [tdd]
The TDD style allows you to write your assertions using the classic 'assert dot' notation.
Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework.
The BDD style allows you to write your assertions in a natural, self-describing manner.
The TDD style allows you to write your assertions using the classic 'assert dot' notation.