MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / assertThrows

Method assertThrows

example-esm/helpers/CustomHelper.js:58–60  ·  view source on GitHub ↗
(fn, message)

Source from the content-addressed store, hash-verified

56 }
57
58 assertThrows(fn, message) {
59 assert.throws(fn, message || 'Expected function to throw')
60 }
61
62 assertDoesNotThrow(fn, message) {
63 assert.doesNotThrow(fn, message || 'Expected function to not throw')

Callers

nothing calls this directly

Calls 1

throwsMethod · 0.45

Tested by

no test coverage detected