MCPcopy Create free account
hub / github.com/Effect-TS/effect / assertClientError

Function assertClientError

packages/platform/node/test/HttpApi.test.ts:64–66  ·  view source on GitHub ↗
(res: Effect.Effect<A, E, R>, error: E)

Source from the content-addressed store, hash-verified

62}
63
64function* assertClientError<A, E, R>(res: Effect.Effect<A, E, R>, error: E) {
65 assert.ok(Equal.equals(yield* Effect.flip(res), error))
66}
67
68describe("HttpApi", () => {
69 it.effect("catch all path", () => {

Callers 1

HttpApi.test.tsFile · 0.85

Calls 2

equalsMethod · 0.80
flipMethod · 0.45

Tested by

no test coverage detected