fix(std/testing): assertion diff color (#7499)

This commit is contained in:
Pig Fang 2020-09-16 18:42:51 +08:00 committed by GitHub
parent aa81bc73d9
commit aa657d6493
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

@ -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",