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

Function assertServerText

packages/platform/node/test/HttpApi.test.ts:57–60  ·  view source on GitHub ↗
(res: HttpClientResponse.HttpClientResponse, status: number, text: string)

Source from the content-addressed store, hash-verified

55import type * as Net from "node:net"
56
57function* assertServerText(res: HttpClientResponse.HttpClientResponse, status: number, text: string) {
58 assert.strictEqual(res.status, status)
59 assert.strictEqual(yield* res.text, text)
60}
61
62function* assertServerJson(res: HttpClientResponse.HttpClientResponse, status: number, json: unknown) {
63 assert.strictEqual(res.status, status)

Callers 1

HttpApi.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected