Skip to content

Commit 484b5f4

Browse files
committed
[fix] Update references to stylize after refactor
1 parent f18b45c commit 484b5f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/vows/console.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ this.vowText = function (event) {
110110
broken: ' ✗ ',
111111
errored: ' ✗ ',
112112
pending: ' - '
113-
}[event.status] + stylize(event.title, ({
113+
}[event.status] + this.stylize(event.title, ({
114114
honored: 'green',
115115
broken: 'yellow',
116116
errored: 'red',
@@ -121,10 +121,10 @@ this.vowText = function (event) {
121121
buffer.push(' » ' + event.exception);
122122
} else if (event.status === 'errored') {
123123
if (event.exception.type === 'promise') {
124-
buffer.push(' » ' + stylize("An unexpected error was caught: " +
125-
stylize(event.exception.error, 'bold'), 'red'));
124+
buffer.push(' » ' + this.stylize("An unexpected error was caught: " +
125+
this.stylize(event.exception.error, 'bold'), 'red'));
126126
} else {
127-
buffer.push(' ' + stylize(event.exception, 'red'));
127+
buffer.push(' ' + this.stylize(event.exception, 'red'));
128128
}
129129
}
130130
return buffer.join('\n');

0 commit comments

Comments
 (0)