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