diff options
Diffstat (limited to 'cli/rt/40_testing.js')
-rw-r--r-- | cli/rt/40_testing.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cli/rt/40_testing.js b/cli/rt/40_testing.js index 082d17fe0..c374e0ca6 100644 --- a/cli/rt/40_testing.js +++ b/cli/rt/40_testing.js @@ -2,7 +2,7 @@ ((window) => { const core = window.Deno.core; - const colors = window.__bootstrap.colors; + const { gray, green, italic, red, yellow } = window.__bootstrap.colors; const { exit } = window.__bootstrap.os; const { Console, inspectArgs } = window.__bootstrap.console; const { stdout } = window.__bootstrap.files; @@ -19,8 +19,6 @@ } function formatDuration(time = 0) { - const gray = colors.maybeColor(colors.gray); - const italic = colors.maybeColor(colors.italic); const timeStr = `(${time}ms)`; return gray(italic(timeStr)); } @@ -141,9 +139,6 @@ finishing test case.`; } function reportToConsole(message) { - const green = colors.maybeColor(colors.green); - const red = colors.maybeColor(colors.red); - const yellow = colors.maybeColor(colors.yellow); const redFailed = red("FAILED"); const greenOk = green("ok"); const yellowIgnored = yellow("ignored"); |