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

Function assertServerJson

packages/platform/node/test/HttpApi.test.ts:51–54  ·  view source on GitHub ↗
(res: HttpClientResponse.HttpClientResponse, status: number, json: unknown)

Source from the content-addressed store, hash-verified

49}
50
51function* assertServerJson(res: HttpClientResponse.HttpClientResponse, status: number, json: unknown) {
52 assert.strictEqual(res.status, status)
53 assert.deepStrictEqual(yield* res.json, json)
54}
55
56function* assertClientText<E, R>(res: Effect.Effect<string, E, R>, text: string) {
57 assert.strictEqual(yield* res, text)

Callers 1

HttpApi.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected