diff options
| author | Kenta Moriuchi <moriken@kimamass.com> | 2023-11-19 17:13:38 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-19 09:13:38 +0100 |
| commit | c806fbdabe144c865612bbbc9ef596c9611c8310 (patch) | |
| tree | edb38d58720377580677ccbeffb693ffa1225cc4 /cli/tests/unit/dom_exception_test.ts | |
| parent | a7548afb58b9848e501a085455446f5de897ffaa (diff) | |
fix(ext,runtime): add missing custom inspections (#21219)
Diffstat (limited to 'cli/tests/unit/dom_exception_test.ts')
| -rw-r--r-- | cli/tests/unit/dom_exception_test.ts | 7 |
1 files changed, 2 insertions, 5 deletions
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"); }); |
