Skip to content

Commit

Permalink
Fix test error output
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Jan 26, 2018
1 parent 69ead96 commit 663527f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/integration/hook.csrf.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ describe('CSRF ::', function() {
if (err && err.status === 403) {
return done();
}
done(new Error('Expected a 403 error, instead got: ' + err || response.body));
done(new Error('Expected a 403 error, instead got: ' + (err || response.body)));

});

Expand Down Expand Up @@ -211,7 +211,7 @@ describe('CSRF ::', function() {
if (err && err.status === 403) {
return done();
}
done(new Error('Expected a 403 error, instead got: ' + err || response.body));
done(new Error('Expected a 403 error, instead got: ' + (err || response.body)));
});
});

Expand All @@ -220,7 +220,7 @@ describe('CSRF ::', function() {
if (err && err.status === 403) {
return done();
}
done(new Error('Expected a 403 error, instead got: ' + err || response.body));
done(new Error('Expected a 403 error, instead got: ' + (err || response.body)));
});
});

Expand All @@ -229,7 +229,7 @@ describe('CSRF ::', function() {
if (err && err.status === 403) {
return done();
}
done(new Error('Expected a 403 error, instead got: ' + err || response.body));
done(new Error('Expected a 403 error, instead got: ' + (err || response.body)));
});
});

Expand Down Expand Up @@ -265,7 +265,7 @@ describe('CSRF ::', function() {
if (err && err.status === 403) {
return done();
}
done(new Error('Expected a 403 error, instead got: ' + err || response.body));
done(new Error('Expected a 403 error, instead got: ' + (err || response.body)));
});
});

Expand All @@ -274,7 +274,7 @@ describe('CSRF ::', function() {
if (err && err.status === 403) {
return done();
}
done(new Error('Expected a 403 error, instead got: ' + err || response.body));
done(new Error('Expected a 403 error, instead got: ' + (err || response.body)));
});
});

Expand All @@ -283,7 +283,7 @@ describe('CSRF ::', function() {
if (err && err.status === 403) {
return done();
}
done(new Error('Expected a 403 error, instead got: ' + err || response.body));
done(new Error('Expected a 403 error, instead got: ' + (err || response.body)));
});
});

Expand All @@ -309,7 +309,7 @@ describe('CSRF ::', function() {
if (err && err.status === 403) {
return done();
}
done(new Error('Expected a 403 error, instead got: ' + err || response.body));
done(new Error('Expected a 403 error, instead got: ' + (err || response.body)));
});
});

Expand Down

0 comments on commit 663527f

Please sign in to comment.