From aa657d6493cb0f36a5e2aa29e6352c9a9991ad2b Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Wed, 16 Sep 2020 18:42:51 +0800 Subject: fix(std/testing): assertion diff color (#7499) --- std/testing/asserts_test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'std/testing/asserts_test.ts') 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", -- cgit v1.2.3