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

Function assertClientJson

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

Source from the content-addressed store, hash-verified

58}
59
60function* assertClientJson<E, R>(res: Effect.Effect<unknown, E, R>, json: unknown) {
61 assert.deepStrictEqual(yield* res, json)
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))

Callers 1

HttpApi.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected