()
| 45 | } |
| 46 | |
| 47 | getFailedNegation() { |
| 48 | this.params.type = 'not to include' |
| 49 | const err = this.getException() |
| 50 | const pattern = new RegExp(`^.*?\n?^.*?\n?^.*?${escapeRegExp(this.params.needle)}.*?$\n?.*$\n?.*$`, 'm') |
| 51 | const matched = this.params.haystack.match(pattern) |
| 52 | if (!matched) return err |
| 53 | err.actual = matched[0].replace(this.params.needle, output.colors.bold(this.params.needle)) |
| 54 | err.actual = `------\n${err.actual}\n------` |
| 55 | return err |
| 56 | } |
| 57 | |
| 58 | addAssertParams() { |
| 59 | this.params.needle = arguments[0] |
nothing calls this directly
no test coverage detected