Skip to content

Commit 36d4360

Browse files
committed
fix: colors
1 parent 1f29e16 commit 36d4360

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const belowThreshold = (id, expected, categories) => {
5050
const getError = (id, expected, categories, audits) => {
5151
const category = categories.find((c) => c.id === id);
5252

53-
const categoryError = `Expected category ${chalk.magenta(
53+
const categoryError = `Expected category ${chalk.cyan(
5454
category.title,
5555
)} to be greater or equal to ${chalk.green(expected)} but got ${chalk.red(
5656
category.score !== null ? category.score : 'unknown',
@@ -60,7 +60,7 @@ const getError = (id, expected, categories, audits) => {
6060
.filter(({ weight, id }) => weight > 0 && audits[id].score < 1)
6161
.map((ref) => {
6262
const audit = audits[ref.id];
63-
return ` '${chalk.magenta(
63+
return ` '${chalk.cyan(
6464
audit.title,
6565
)}' received a score of ${chalk.yellow(audit.score)}`;
6666
})
@@ -151,11 +151,11 @@ const runAudit = async ({ path, url, thresholds }) => {
151151

152152
const prefixString = ({ path, url, str }) => {
153153
if (path) {
154-
return `\n${chalk.red('Error')} for directory '${chalk.magenta(
154+
return `\n${chalk.red('Error')} for directory '${chalk.cyan(
155155
path,
156156
)}':\n${str}`;
157157
} else if (url) {
158-
return `\n${chalk.red('Error')} for url '${chalk.magenta(url)}':\n${str}`;
158+
return `\n${chalk.red('Error')} for url '${chalk.cyan(url)}':\n${str}`;
159159
} else {
160160
return `\n${str}`;
161161
}

0 commit comments

Comments
 (0)