(actual: string | undefined, expected: string, ..._: Array<never>)
| 88 | } |
| 89 | |
| 90 | export function assertInclude(actual: string | undefined, expected: string, ..._: Array<never>) { |
| 91 | if (Predicate.isString(expected)) { |
| 92 | if (!actual?.includes(expected)) { |
| 93 | fail(`Expected\n\n${actual}\n\nto include\n\n${expected}`) |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | export function assertMatch(actual: string, regExp: RegExp, ..._: Array<never>) { |
| 99 | if (!regExp.test(actual)) { |