Skip to content

Commit 7290532

Browse files
committed
[fix] Fix failed assertions output
Latest changes made to Vows in order to make it compatible with `node v0.5.x` (see issue #141) introduce a bug which caused Vows to output only file name and line when assertion fails: when testing ✗ should output details » // test.js:8 This turned out to be a really small bug. Output works now: when testing ✗ should output details » expected { a: 1, b: 3 }, got { a: 1, b: 2 } (deepEqual) // test.js:8 Sorry for that.
1 parent ef4a803 commit 7290532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/assert/error.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ require('assert').AssertionError.prototype.toString = function () {
1919

2020
if (this.message) {
2121
return stylize(parse(this.message), 'yellow') +
22-
(source) ? stylize(' // ' + source[1] + source[2], 'grey') : '';
22+
((source) ? stylize(' // ' + source[1] + source[2], 'grey') : '');
2323
} else {
2424
return stylize([
2525
this.expected,

0 commit comments

Comments
 (0)