Skip to content

Commit 2dc4753

Browse files
committed
Fix some minor issues with #1198
1 parent 5c4c270 commit 2dc4753

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/reporters/verbose.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ class VerboseReporter {
1414
constructor(options) {
1515
this.options = Object.assign({}, options);
1616

17-
chalk.enabled = options.color;
17+
chalk.enabled = this.options.color;
1818
for (const key of Object.keys(colors)) {
19-
colors[key].enabled = options.color;
19+
colors[key].enabled = this.options.color;
2020
}
2121
}
2222
start() {

test/reporters/verbose.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ test('results when fail-fast is enabled', t => {
629629
});
630630

631631
test('results when fail-fast is enabled with multiple skipped tests', t => {
632-
const reporter = new VerboseReporter();
632+
const reporter = new VerboseReporter({color: true});
633633
const runStatus = createRunStatus();
634634
runStatus.remainingCount = 2;
635635
runStatus.failCount = 1;

0 commit comments

Comments
 (0)