MCPcopy Create free account
hub / github.com/effect-app/libs / assertFailure

Function assertFailure

repos/effect/packages/effect/test/utils/assert.ts:140–146  ·  view source on GitHub ↗
(
  result: Result.Result<A, E>,
  expected: E,
  ..._: Array<never>
)

Source from the content-addressed store, hash-verified

138 return
139 }
140 fail("Expected to throw an error")
141}
142
143// ----------------------------
144// Option
145// ----------------------------
146
147export function assertNone<A>(option: Option.Option<A>, ..._: Array<never>): asserts option is Option.None<never> {
148 deepStrictEqual(option, Option.none())
149}

Callers 3

Channel.test.tsFile · 0.90
Brand.test.tsFile · 0.90
Url.test.tsFile · 0.90

Calls 2

deepStrictEqualFunction · 0.70
failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…