Permalink
Browse files

[fix] Update references to `stylize` after refactor

  • Loading branch information...
1 parent f18b45c commit 484b5f418eaa71b71945048d09634faddc930a54 @indexzero indexzero committed Aug 12, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/vows/console.js
View
@@ -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',
@@ -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');

0 comments on commit 484b5f4

Please sign in to comment.