Skip to content

Commit

Permalink
[fix] Update references to stylize after refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Aug 12, 2011
1 parent f18b45c commit 484b5f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/vows/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ this.vowText = function (event) {
broken: ' ✗ ',
errored: ' ✗ ',
pending: ' - '
}[event.status] + stylize(event.title, ({
}[event.status] + this.stylize(event.title, ({
honored: 'green',
broken: 'yellow',
errored: 'red',
Expand All @@ -121,10 +121,10 @@ this.vowText = function (event) {
buffer.push(' » ' + event.exception);
} else if (event.status === 'errored') {
if (event.exception.type === 'promise') {
buffer.push(' » ' + stylize("An unexpected error was caught: " +
stylize(event.exception.error, 'bold'), 'red'));
buffer.push(' » ' + this.stylize("An unexpected error was caught: " +
this.stylize(event.exception.error, 'bold'), 'red'));
} else {
buffer.push(' ' + stylize(event.exception, 'red'));
buffer.push(' ' + this.stylize(event.exception, 'red'));
}
}
return buffer.join('\n');
Expand Down

0 comments on commit 484b5f4

Please sign in to comment.