(res: HttpClientResponse.HttpClientResponse, status: number, json: unknown)
| 60 | } |
| 61 | |
| 62 | function* assertServerJson(res: HttpClientResponse.HttpClientResponse, status: number, json: unknown) { |
| 63 | assert.strictEqual(res.status, status) |
| 64 | assert.deepStrictEqual(yield* res.json, json) |
| 65 | } |
| 66 | |
| 67 | function* assertClientText<E, R>(res: Effect.Effect<string, E, R>, text: string) { |
| 68 | assert.strictEqual(yield* res, text) |