test: fix parser tests

fork
Brian White 8 years ago
parent 2373af9e79
commit 5d2d9227e9

@ -488,7 +488,8 @@ var CR = '\r', LF = '\n', CRLF = CR + LF;
)
);
});
}
} else
stream.resume();
});
try {
@ -499,6 +500,7 @@ var CR = '\r', LF = '\n', CRLF = CR + LF;
console.log(makeMsg(v.what, 'JS Exception: ' + e.stack));
return;
}
setImmediate(function() {
assert.deepEqual(result,
v.expected,
makeMsg(v.what,
@ -508,6 +510,7 @@ var CR = '\r', LF = '\n', CRLF = CR + LF;
)
);
});
});
function makeMsg(what, msg) {
return '[' + what + ']: ' + msg;

Loading…
Cancel
Save