diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-07-25 15:30:28 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 15:30:28 +1000 |
commit | 5f44148e83bb0056b7a361dd6a1bf28d11f3116d (patch) | |
tree | e73ff318a69cabedf33a962be6fa6c73e6775f3e /tests/unit_node/console_test.ts | |
parent | 84b7504d0fdccc07b9f7412408c954ae07765ccb (diff) |
chore: update to `std@2024.07.19` (#24715)
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", |