Function
assertMatch
(actual: string, regexp: RegExp, ..._: Array<never>)
Source from the content-addressed store, hash-verified
| 74 | } |
| 75 | |
| 76 | export function assertMatch(actual: string, regexp: RegExp, ..._: Array<never>) { |
| 77 | if (!regexp.test(actual)) { |
| 78 | fail(`Expected\n\n${actual}\n\nto match\n\n${regexp}`) |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | export function throws(thunk: () => void, error?: Error | ((u: unknown) => undefined), ..._: Array<never>) { |
| 83 | try { |
Callers
nothing calls this directly
Tested by
no test coverage detected