summaryrefslogtreecommitdiff
path: root/cli/rt/40_testing.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-10-14 18:54:29 +0200
committerGitHub <noreply@github.com>2020-10-14 18:54:29 +0200
commit81635c59e66b81a4c85aed6775aff4beedf71f14 (patch)
treeecfd55b14c76d880643b1bcaef64c30df1f808fc /cli/rt/40_testing.js
parent5bed06fb94214db70a27cca8fa8eff717d537dba (diff)
Revert "feat(cli/console): inspect with colors regardless of Deno.noColor (#7778)" (#7973)
This reverts commit f75bd89aff7cffafceb394d629995479af54a156.
Diffstat (limited to 'cli/rt/40_testing.js')
-rw-r--r--cli/rt/40_testing.js7
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");