Skip to content

Commit

Permalink
fix integration helper json failure output
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Feb 6, 2019
1 parent 2abc1a8 commit a0afd97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/helpers.js
Expand Up @@ -81,10 +81,10 @@ module.exports = {
var path;

path = resolveFixturePath(fixturePath);
args = args || [];
args = (args || []).concat('--reporter', 'json', path);

return invokeMocha(
args.concat(['--reporter', 'json', path]),
args,
function(err, res) {
if (err) return fn(err);

Expand All @@ -95,8 +95,8 @@ module.exports = {
fn(
new Error(
format(
'Failed to parse JSON reporter output.\nArgs: %O\nResult:\n\n%O',
args,
'Failed to parse JSON reporter output. Error:\n%O\nResponse:\n%O',
err,
res
)
)
Expand Down

0 comments on commit a0afd97

Please sign in to comment.