(path: string, init?: RequestInit)
| 19 | ) {} |
| 20 | |
| 21 | async get(path: string, init?: RequestInit): Promise<Response> { |
| 22 | const url = this.toUrl(path); |
| 23 | const req = new Request(url, init); |
| 24 | return await this.handler(req, STUB); |
| 25 | } |
| 26 | async post(path: string, body?: BodyInit): Promise<Response> { |
| 27 | const url = this.toUrl(path); |
| 28 | const req = new Request(url, { method: "post", body }); |
no test coverage detected