Back to Sinon

mock.verify

docs/concepts/mocks/api/verify.md

22.1.0275 B
Original Source

mock.verify

Verifies all expectations on the mock and restores all mocked methods.

If any expectation is not satisfied, an exception is thrown.

<<< ../../../.vitepress/tests/docs/mocks/api/verify-1.test.js

<<< ../../../.vitepress/tests/docs/mocks/api/verify-2.test.js