Function
assertMatch
(actual: string, regExp: RegExp, ..._: Array<never>)
Source from the content-addressed store, hash-verified
| 96 | } |
| 97 | |
| 98 | export function assertMatch(actual: string, regExp: RegExp, ..._: Array<never>) { |
| 99 | if (!regExp.test(actual)) { |
| 100 | fail(`Expected\n\n${actual}\n\nto match\n\n${regExp}`) |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | export function throws(thunk: () => void, error?: string | Error | ((u: unknown) => undefined), ..._: Array<never>) { |
| 105 | try { |
Callers
nothing calls this directly
Tested by
no test coverage detected