MCPcopy Index your code
hub / github.com/Effect-TS/effect / assertMatch

Function assertMatch

packages/effect/test/util.ts:76–80  ·  view source on GitHub ↗
(actual: string, regexp: RegExp, ..._: Array<never>)

Source from the content-addressed store, hash-verified

74}
75
76export 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
82export function throws(thunk: () => void, error?: Error | ((u: unknown) => undefined), ..._: Array<never>) {
83 try {

Callers

nothing calls this directly

Calls 1

failFunction · 0.70

Tested by

no test coverage detected