summaryrefslogtreecommitdiff
path: root/cli/js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-06-15 15:34:21 +0200
committerGitHub <noreply@github.com>2023-06-15 15:34:21 +0200
commitf145cbfaccd9f3b251b2f80690ad7c68b26d924b (patch)
treef546388ed6b1d3ce28400a5e32d85a75efcfd3a5 /cli/js
parent3d71c36888018d5154b42997bb64adc2892c034d (diff)
refactor(ext/fetch): simplify fetch ops (#19494)
Addresses feedback from https://github.com/denoland/deno/pull/19412#discussion_r1227912676
Diffstat (limited to 'cli/js')
-rw-r--r--cli/js/40_testing.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/40_testing.js b/cli/js/40_testing.js
index ec83ce370..3058fcee3 100644
--- a/cli/js/40_testing.js
+++ b/cli/js/40_testing.js
@@ -228,7 +228,7 @@ function prettyResourceNames(name) {
return ["A fetch request", "started", "finished"];
case "fetchRequestBody":
return ["A fetch request body", "created", "closed"];
- case "fetchResponseBody":
+ case "fetchResponse":
return ["A fetch response body", "created", "consumed"];
case "httpClient":
return ["An HTTP client", "created", "closed"];
@@ -295,7 +295,7 @@ function resourceCloseHint(name) {
return "Await the promise returned from `fetch()` or abort the fetch with an abort signal.";
case "fetchRequestBody":
return "Terminate the request body `ReadableStream` by closing or erroring it.";
- case "fetchResponseBody":
+ case "fetchResponse":
return "Consume or close the response body `ReadableStream`, e.g `await resp.text()` or `await resp.body.cancel()`.";
case "httpClient":
return "Close the HTTP client by calling `httpClient.close()`.";