From c806fbdabe144c865612bbbc9ef596c9611c8310 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Sun, 19 Nov 2023 17:13:38 +0900 Subject: fix(ext,runtime): add missing custom inspections (#21219) --- cli/tests/unit/dom_exception_test.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'cli/tests/unit/dom_exception_test.ts') diff --git a/cli/tests/unit/dom_exception_test.ts b/cli/tests/unit/dom_exception_test.ts index d0a0b8a94..1a1cb8332 100644 --- a/cli/tests/unit/dom_exception_test.ts +++ b/cli/tests/unit/dom_exception_test.ts @@ -7,11 +7,8 @@ import { } from "./test_util.ts"; Deno.test(function customInspectFunction() { - const blob = new DOMException("test"); - assertEquals( - Deno.inspect(blob), - `DOMException: test`, - ); + const exception = new DOMException("test"); + assertEquals(Deno.inspect(exception), exception.stack); assertStringIncludes(Deno.inspect(DOMException.prototype), "DOMException"); }); -- cgit v1.2.3