Skip to content

Commit

Permalink
🎨 change skip color to cyan
Browse files Browse the repository at this point in the history
  • Loading branch information
ngarbezza committed Aug 26, 2024
1 parent 2ce3cb2 commit 46af019
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/ui/formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { isEmpty, isString } from '../utils.js';
// Colors and emphasis
const off = '\x1b[0m';
const bold = '\x1b[1m';
const grey = '\x1b[30m';
const cyan = '\x1b[36m';
const red = '\x1b[31m';
const green = '\x1b[32m';
const yellow = '\x1b[33m';
Expand Down Expand Up @@ -66,7 +66,7 @@ export class Formatter {
}

displaySkippedResult(test) {
this.#displayResult(this.#translated('skip'), test, grey);
this.#displayResult(this.#translated('skip'), test, cyan);
}

displaySuccessResult(test) {
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/formatter_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ suite('formatter', () => {
});
});

test('display skipped status in grey when explicitly skipping a test', async() => {
test('display skipped status in cyan when explicitly skipping a test', async() => {
await withRunner(async(runner, _assert, _fail) => {
const skippedTest = anExplicitlySkippedTest();
await resultOfASuiteWith(runner, skippedTest);
formatter.displaySkippedResult(skippedTest);
const testResultMessage = '[\x1B[30m\x1B[1mSKIP\x1B[0m] \x1B[30ma test that is skipped\x1B[0m';
const testResultMessage = '[\x1B[36m\x1B[1mSKIP\x1B[0m] \x1B[36ma test that is skipped\x1B[0m';
assert.that(fakeConsole.messages()).includesExactly(testResultMessage);
});
});
Expand Down

0 comments on commit 46af019

Please sign in to comment.