Back to Sinon

spy.alwaysThrew

docs/concepts/spies/api/always-threw.md

22.1.0455 B
Original Source

spy.alwaysThrew

Returns true, when the fake, spy or stub always threw an exception.

<<< ../../../.vitepress/tests/docs/spies/api/always-threw.test.js

Resetting alwaysThrew to default

You can reset alwaysThrew in three different ways: