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

Function assertClientJson

packages/platform/node/test/HttpApi.test.ts:71–73  ·  view source on GitHub ↗
(res: Effect.Effect<unknown, E, R>, json: unknown)

Source from the content-addressed store, hash-verified

69}
70
71function* assertClientJson<E, R>(res: Effect.Effect<unknown, E, R>, json: unknown) {
72 assert.deepStrictEqual(yield* res, json)
73}
74
75function* assertClientError<A, E, R>(res: Effect.Effect<A, E, R>, error: E) {
76 assert.ok(Equal.equals(yield* Effect.flip(res), error))

Callers 1

HttpApi.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected