(actual: string | undefined, expected: string, ..._: Array<never>)
| 114 | * @since 0.21.0 |
| 115 | */ |
| 116 | export function assertInclude(actual: string | undefined, expected: string, ..._: Array<never>) { |
| 117 | if (Predicate.isString(expected)) { |
| 118 | if (!actual?.includes(expected)) { |
| 119 | fail(`Expected\n\n${actual}\n\nto include\n\n${expected}`) |
| 120 | } |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | /** |
| 125 | * Asserts that `actual` matches `regexp`. |
no test coverage detected