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

Function assertInclude

packages/effect/test/util.ts:68–74  ·  view source on GitHub ↗
(actual: string | undefined, expected: string, ..._: Array<never>)

Source from the content-addressed store, hash-verified

66}
67
68export function assertInclude(actual: string | undefined, expected: string, ..._: Array<never>) {
69 if (Predicate.isString(expected)) {
70 if (!actual?.includes(expected)) {
71 fail(`Expected\n\n${actual}\n\nto include\n\n${expected}`)
72 }
73 }
74}
75
76export function assertMatch(actual: string, regexp: RegExp, ..._: Array<never>) {
77 if (!regexp.test(actual)) {

Callers

nothing calls this directly

Calls 1

failFunction · 0.70

Tested by

no test coverage detected