From 663527f340535de4890e592bc521e77e97d8743f Mon Sep 17 00:00:00 2001 From: Scott Gress Date: Thu, 25 Jan 2018 22:11:56 -0600 Subject: [PATCH] Fix test error output --- test/integration/hook.csrf.test.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/integration/hook.csrf.test.js b/test/integration/hook.csrf.test.js index b8f1400f5..eca818831 100644 --- a/test/integration/hook.csrf.test.js +++ b/test/integration/hook.csrf.test.js @@ -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))); }); @@ -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))); }); }); @@ -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))); }); }); @@ -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))); }); }); @@ -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))); }); }); @@ -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))); }); }); @@ -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))); }); }); @@ -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))); }); });