summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-04-21 23:03:04 +0200
committerGitHub <noreply@github.com>2021-04-21 23:03:04 +0200
commit8d0e0ead51d523c35c7d6b423510c9df8ba1339c (patch)
tree3b8c1630bc365d177623c4ec620a9f5b3d4c0ce3 /cli/tests
parent21372d7b25141d5edb662d87e5842744ca23e8b5 (diff)
fix(fetch): Response inspect regression (#10295)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/unit/response_test.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/cli/tests/unit/response_test.ts b/cli/tests/unit/response_test.ts
index 096eefc6d..9993eb925 100644
--- a/cli/tests/unit/response_test.ts
+++ b/cli/tests/unit/response_test.ts
@@ -50,3 +50,20 @@ unitTest({ ignore: true }, async function responseFormData() {
assert(formData instanceof FormData);
assertEquals(formData, input);
});
+
+unitTest(function customInspectFunction(): void {
+ const response = new Response();
+ assertEquals(
+ Deno.inspect(response),
+ `Response {
+ body: null,
+ bodyUsed: false,
+ headers: Headers {},
+ ok: true,
+ redirected: false,
+ status: 200,
+ statusText: "",
+ url: ""
+}`,
+ );
+});