summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/js/40_testing.js4
-rw-r--r--cli/tests/testdata/run/fetch_response_finalization.js.out7
2 files changed, 3 insertions, 8 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()`.";
diff --git a/cli/tests/testdata/run/fetch_response_finalization.js.out b/cli/tests/testdata/run/fetch_response_finalization.js.out
index 1a8d7563d..645842a5b 100644
--- a/cli/tests/testdata/run/fetch_response_finalization.js.out
+++ b/cli/tests/testdata/run/fetch_response_finalization.js.out
@@ -1,7 +1,2 @@
-{
- "0": "stdin",
- "1": "stdout",
- "2": "stderr",
- "5": "fetchResponseBody"
-}
+{ "0": "stdin", "1": "stdout", "2": "stderr", "5": "fetchResponse" }
{ "0": "stdin", "1": "stdout", "2": "stderr" }