Include content on binary output test failure

This commit is contained in:
kpdecker
2014-01-18 09:29:47 -06:00
parent cea57c05e2
commit 4679b1d931
+3 -2
View File
@@ -10,8 +10,9 @@ module.exports = function(grunt) {
throw err;
}
if (stdout.toString() !== fs.readFileSync('./spec/expected/empty.amd.js').toString()) {
throw new Error('Expected binary output differed');
var expected = fs.readFileSync('./spec/expected/empty.amd.js');
if (stdout.toString() !== expected.toString()) {
throw new Error('Expected binary output differed:\n\n' + stdout + '\n\n' + expected);
}
done();