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

Method getFailedAssertion

lib/assert/include.js:37–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 }
36
37 getFailedAssertion() {
38 const err = this.getException()
39 const lines = this.params.haystack.split('\n')
40 if (lines.length > MAX_LINES) {
41 const more = lines.length - MAX_LINES
42 err.actual = `${lines.slice(0, MAX_LINES).join('\n')}\n--( ${more} lines more )---`
43 }
44 return err
45 }
46
47 getFailedNegation() {
48 this.params.type = 'not to include'

Callers

nothing calls this directly

Calls 1

getExceptionMethod · 0.95

Tested by

no test coverage detected