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