You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -88,7 +87,7 @@ function compareLines(actual, expected) {
88
87
for(vari=0;i<expected.length;i++){
89
88
// Some tests are regular expressions because the output format changed slightly between node v0.9.2 and v0.9.3
90
89
if(expected[i]instanceofRegExp){
91
-
assert(expected[i].test(actual[i]),JSON.stringify(actual[i])+' does not match '+expected[i]);
90
+
assert(expected[i].test(actual[i]),JSON.stringify(actual[i])+' does not match '+expected[i]+'\n'+JSON.stringify({actual,expected: expected.map(v=>typeofv==='string' ? v : v.toString())},null,2));
92
91
}else{
93
92
assert.equal(actual[i],expected[i]);
94
93
}
@@ -211,7 +210,9 @@ function compareStdout(done, sourceMap, source, expected) {
211
210
(stdout+stderr)
212
211
.trim()
213
212
.split(/\r\n|\n/)
214
-
.filter(function(line){returnline!==''}),// Empty lines are not relevant.
213
+
// Empty lines are not relevant.
214
+
// Running in a debugger causes additional output.
0 commit comments