docs/concepts/assertions/index.md
Sinon.JS ships with a set of assertions that mirror most behavior verification methods and properties on fakes, spies and stubs.
The advantage of using the assertions is that failed expectations on fakes, spies and stubs can be expressed directly as assertion failures with detailed and helpful error messages.
sinon.assert<<< @/.vitepress/tests/docs/assertions/_index-1.test.js
sinon.assert<<< @/.vitepress/tests/docs/assertions/_index-2.test.js
To make sure assertions integrate nicely with your assertion framework, you should customize sinon.assert.fail and look into sinon.assert.expose and sinon.assert.pass.