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