API Reference

The Chai API is broken down by style or task.

Assertion Styles
  • The Expect / Should API covers the BDD assertion styles.
  • The Assert API covers the TDD assertion style.
  • The Plugin API will be of use to anyone interested in building plugins as helpers to DRY up your tests, or for release to the community.
  • The Online Test Suite is a live run of Chai’s test suite. Use it to ensure browser compatibility.