* Returns a Promise that resolves when the request of given ID is deposited. * The returned promise resolves to an JsonObject contains the request info: * { * url: string * headers: JsonObject * body: string * } * @param {number|string|undefined} requestId * @returns {P
(requestId)
| 198 | * @returns {Promise<JsonObject>} |
| 199 | */ |
| 200 | static withdraw(requestId) { |
| 201 | const url = `${REQUEST_URL}/withdraw/${requestId}/`; |
| 202 | return RequestBank.fetch_(url, `withdraw(${requestId ?? ''})`).then((res) => |
| 203 | res.json() |
| 204 | ); |
| 205 | } |
| 206 | |
| 207 | static tearDown() { |
| 208 | const url = `${REQUEST_URL}/teardown/`; |
no test coverage detected