mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 05:04:48 +00:00
fix(std/testing): assertion diff color (#7499)
This commit is contained in:
parent
aa81bc73d9
commit
aa657d6493
2 changed files with 7 additions and 5 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue