Permalink
Browse files

Merge pull request #146 from mmalecki/fix-output

[fix] Fix failed assertions output
  • Loading branch information...
2 parents ef4a803 + 7290532 commit 0894d9444c0cfd941c52f609fa0f709e86375885 @indexzero indexzero committed Oct 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/assert/error.js
View
@@ -19,7 +19,7 @@ require('assert').AssertionError.prototype.toString = function () {
if (this.message) {
return stylize(parse(this.message), 'yellow') +
- (source) ? stylize(' // ' + source[1] + source[2], 'grey') : '';
+ ((source) ? stylize(' // ' + source[1] + source[2], 'grey') : '');
} else {
return stylize([
this.expected,

0 comments on commit 0894d94

Please sign in to comment.