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
Copy file name to clipboardExpand all lines: test.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,11 @@ var SourceMapGenerator = require('source-map').SourceMapGenerator;
6
6
varchild_process=require('child_process');
7
7
varassert=require('assert');
8
8
varfs=require('fs');
9
+
varutil=require('util');
9
10
varbufferFrom=Buffer.from;
10
11
11
12
functioncompareLines(actual,expected){
12
-
assert(actual.length>=expected.length,'got '+actual.length+' lines but expected at least '+expected.length+' lines');
13
+
assert(actual.length>=expected.length,'got '+actual.length+' lines but expected at least '+expected.length+' lines\n'+util.inspect({actual, expected}));
13
14
for(vari=0;i<expected.length;i++){
14
15
// Some tests are regular expressions because the output format changed slightly between node v0.9.2 and v0.9.3
0 commit comments