Revert "feat(cli/console): inspect with colors regardless of Deno.noColor (#7778)" (#7973)

This reverts commit f75bd89aff.
This commit is contained in:
Bartek Iwańczuk 2020-10-14 18:54:29 +02:00 committed by GitHub
parent 5bed06fb94
commit 81635c59e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 23 deletions

View file

@ -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");