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

Method getException

lib/assert/truth.js:17–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 }
16
17 getException() {
18 const err = new AssertionFailedError(this.params, '{{customMessage}}expected {{subject}} {{type}}')
19 err.cliMessage = () => {
20 const msg = err.template.replace('{{subject}}', output.colors.bold('{{subject}}'))
21 return template(msg, this.params)
22 }
23 return err
24 }
25
26 addAssertParams() {
27 this.params.value = this.params.actual = arguments[0]

Callers

nothing calls this directly

Calls 1

templateFunction · 0.90

Tested by

no test coverage detected