summaryrefslogtreecommitdiff
path: root/testing/pretty.ts
diff options
context:
space:
mode:
Diffstat (limited to 'testing/pretty.ts')
-rw-r--r--testing/pretty.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/pretty.ts b/testing/pretty.ts
index 737d9c6dd..05fd86b6f 100644
--- a/testing/pretty.ts
+++ b/testing/pretty.ts
@@ -17,9 +17,9 @@ function createStr(v: unknown): string {
function createColor(diffType: DiffType): (s: string) => string {
switch (diffType) {
- case "added":
+ case DiffType.added:
return (s: string) => green(bold(s));
- case "removed":
+ case DiffType.removed:
return (s: string) => red(bold(s));
default:
return white;
@@ -28,9 +28,9 @@ function createColor(diffType: DiffType): (s: string) => string {
function createSign(diffType: DiffType): string {
switch (diffType) {
- case "added":
+ case DiffType.added:
return "+ ";
- case "removed":
+ case DiffType.removed:
return "- ";
default:
return " ";