summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testing/mod.ts10
1 files changed, 3 insertions, 7 deletions
diff --git a/testing/mod.ts b/testing/mod.ts
index 0a6e52805..30f2a0c98 100644
--- a/testing/mod.ts
+++ b/testing/mod.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-// Do not add imports in this file in order to be compatible with Node.
+import { green, red } from "../colors/mod.ts";
interface Constructor {
new (...args: any[]): any;
@@ -233,16 +233,12 @@ function filter(name: string): boolean {
}
}
-const RESET = "\x1b[0m";
-const FG_RED = "\x1b[31m";
-const FG_GREEN = "\x1b[32m";
-
function red_failed() {
- return FG_RED + "FAILED" + RESET;
+ return red("FAILED");
}
function green_ok() {
- return FG_GREEN + "ok" + RESET;
+ return green("ok");
}
export async function runTests() {