summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
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: ""
+}`,
+ );
+});