summaryrefslogtreecommitdiff
path: root/std/testing/asserts_test.ts
diff options
context:
space:
mode:
authorPig Fang <g-plane@hotmail.com>2020-09-16 18:42:51 +0800
committerGitHub <noreply@github.com>2020-09-16 12:42:51 +0200
commitaa657d6493cb0f36a5e2aa29e6352c9a9991ad2b (patch)
treee200264ee0ef29c12da0d584994899d9623e3fb1 /std/testing/asserts_test.ts
parentaa81bc73d96729f6593d55d2c1e66000e115dfe4 (diff)
fix(std/testing): assertion diff color (#7499)
Diffstat (limited to 'std/testing/asserts_test.ts')
-rw-r--r--std/testing/asserts_test.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/std/testing/asserts_test.ts b/std/testing/asserts_test.ts
index f8a600d77..4840bcf53 100644
--- a/std/testing/asserts_test.ts
+++ b/std/testing/asserts_test.ts
@@ -336,8 +336,10 @@ const createHeader = (): string[] => [
"",
];
-const added: (s: string) => string = (s: string): string => green(bold(s));
-const removed: (s: string) => string = (s: string): string => red(bold(s));
+const added: (s: string) => string = (s: string): string =>
+ green(bold(stripColor(s)));
+const removed: (s: string) => string = (s: string): string =>
+ red(bold(stripColor(s)));
Deno.test({
name: "pass case",