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/assertion_error_test.ts | |
parent | 84b7504d0fdccc07b9f7412408c954ae07765ccb (diff) |
chore: update to `std@2024.07.19` (#24715)
Diffstat (limited to 'tests/unit_node/assertion_error_test.ts')
-rw-r--r-- | tests/unit_node/assertion_error_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit_node/assertion_error_test.ts b/tests/unit_node/assertion_error_test.ts index 6cce7a4ac..4f8fe70ba 100644 --- a/tests/unit_node/assertion_error_test.ts +++ b/tests/unit_node/assertion_error_test.ts @@ -1,6 +1,6 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -import { stripColor } from "@std/fmt/colors.ts"; -import { assert, assertStrictEquals } from "@std/assert/mod.ts"; +import { stripAnsiCode } from "@std/fmt/colors"; +import { assert, assertStrictEquals } from "@std/assert"; import { AssertionError } from "node:assert"; Deno.test({ @@ -31,7 +31,7 @@ Deno.test({ { actual: 1, expected: 2, operator: "equal" }, ); assertStrictEquals(err.name, "AssertionError"); - assertStrictEquals(stripColor(err.message), "1 equal 2"); + assertStrictEquals(stripAnsiCode(err.message), "1 equal 2"); assertStrictEquals(err.generatedMessage, true); assertStrictEquals(err.code, "ERR_ASSERTION"); assertStrictEquals(err.actual, 1); @@ -51,7 +51,7 @@ Deno.test({ stackStartFn, }); assertStrictEquals(err.name, "AssertionError"); - assertStrictEquals(stripColor(err.message), `'deno' match /node/`); + assertStrictEquals(stripAnsiCode(err.message), `'deno' match /node/`); assertStrictEquals(err.generatedMessage, true); assertStrictEquals(err.code, "ERR_ASSERTION"); assertStrictEquals(err.actual, "deno"); |