diff options
Diffstat (limited to 'tests/unit_node/console_test.ts')
-rw-r--r-- | tests/unit_node/console_test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit_node/console_test.ts b/tests/unit_node/console_test.ts index f79dcc436..25d4a78e5 100644 --- a/tests/unit_node/console_test.ts +++ b/tests/unit_node/console_test.ts @@ -1,18 +1,18 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. import vm from "node:vm"; -import { stripColor } from "@std/fmt/colors.ts"; -import { assertStringIncludes } from "@std/assert/mod.ts"; +import { stripAnsiCode } from "@std/fmt/colors"; +import { assertStringIncludes } from "@std/assert"; Deno.test(function inspectCrossRealmObjects() { assertStringIncludes( - stripColor( + stripAnsiCode( Deno.inspect(vm.runInNewContext(`new Error("This is an error")`)), ), "Error: This is an error", ); assertStringIncludes( - stripColor( + stripAnsiCode( Deno.inspect( vm.runInNewContext(`new AggregateError([], "This is an error")`), ), @@ -20,7 +20,7 @@ Deno.test(function inspectCrossRealmObjects() { "AggregateError: This is an error", ); assertStringIncludes( - stripColor( + stripAnsiCode( Deno.inspect(vm.runInNewContext(`new Date("2018-12-10T02:26:59.002Z")`)), ), "2018-12-10T02:26:59.002Z", |