(actual: string, regexp: RegExp, ..._: Array<never>)
| 127 | * @since 0.21.0 |
| 128 | */ |
| 129 | export function assertMatch(actual: string, regexp: RegExp, ..._: Array<never>) { |
| 130 | if (!regexp.test(actual)) { |
| 131 | fail(`Expected\n\n${actual}\n\nto match\n\n${regexp}`) |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * Asserts that `thunk` throws an error. |