Skip to content

Commit f1966d9

Browse files
committed
Merge pull request #618 from sindresorhus/mini-reporter-color
remove color from test title in mini reporter
2 parents 73c8b6b + 9c867e9 commit f1966d9

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

lib/reporters/mini.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,16 @@ MiniReporter.prototype.prefix = function (str) {
7070
};
7171

7272
MiniReporter.prototype._test = function (test) {
73-
var title;
73+
var title = test.title;
7474

7575
if (test.todo) {
76-
title = colors.todo('- ' + test.title);
7776
this.todoCount++;
7877
} else if (test.skip) {
79-
title = colors.skip('- ' + test.title);
8078
this.skipCount++;
8179
} else if (test.error) {
8280
title = colors.error(test.title);
8381
this.failCount++;
8482
} else {
85-
title = colors.pass(test.title);
8683
this.passCount++;
8784
}
8885

test/reporters/mini.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ test('skipped test', function (t) {
120120

121121
var expectedOutput = [
122122
' ',
123-
' ⠋ ' + chalk.yellow('- skipped'),
123+
' ⠋ ' + chalk.yellow('skipped'),
124124
'',
125125
' ' + chalk.yellow('1 skipped')
126126
].join('\n');
@@ -140,7 +140,7 @@ test('todo test', function (t) {
140140

141141
var expectedOutput = [
142142
' ',
143-
' ⠋ ' + chalk.blue('- todo'),
143+
' ⠋ ' + chalk.blue('todo'),
144144
'',
145145
' ' + chalk.blue('1 todo')
146146
].join('\n');

0 commit comments

Comments
 (0)