of test assertions. • Beyond the “basic” assertions of truth, falseness, equality, and type, we have “rich” assertions which assert something more specific. • Rich assertions allow both clearer code and more explanatory error messages on failure. • This talk describes rich assertions in Sinon.
• It can stub out or spy upon functions, and then allows access to the call count, arguments, return values, etc. • The Sinon rich assertions can be included in the Chai assert object by doing: sinon.assert.expose(chai.assert, { prefix: "" });