diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-03-02 20:56:53 +0100 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-02 14:56:53 -0500 |
| commit | ef30a885424fffcc20af9529265474d0203a9533 (patch) | |
| tree | e7e580c54dbd371a4270b97d13de8cb623e7534d /testing/mod.ts | |
| parent | c131b8f3b6664dfa69d80c2643b3261540b58fd7 (diff) | |
Testing add ansi color support from color module (denoland/deno_std#223)
Original: https://github.com/denoland/deno_std/commit/90871cfca6f44a8cfea19345998359d615002b05
Diffstat (limited to 'testing/mod.ts')
| -rw-r--r-- | testing/mod.ts | 10 |
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() { |
