Include stdout in error messages to aid debugging.

This commit is contained in:
Logan Smyth 2018-03-17 14:02:05 -07:00
parent 9e4dd861ee
commit 40e38646e4

View File

@ -64,7 +64,7 @@ const assertTest = function(stdout, stderr, opts) {
chai.expect(stderr).to.equal(expectStderr, "stderr didn't match");
}
} else if (stderr) {
throw new Error("stderr:\n" + stderr);
throw new Error("stderr:\n" + stderr + "\n\nstdout:\n" + stdout);
}
const expectStdout = opts.stdout.trim();