Skip to content

Node.js based forum software built for the modern web

test: show body when test fails

Barış Soner Uşaklıe3f5b706a513
diff --git a/test/controllers.js b/test/controllers.js
index 452b43d302..8a27c80d3c 100644
--- a/test/controllers.js
+++ b/test/controllers.js
@@ -379,7 +379,7 @@ describe('Controllers', () => {
resolveWithFullResponse: true,
});
- assert(res.body.errors.includes('[[error:invalid-email]]'));
+ assert(res.body.errors.includes('[[error:invalid-email]]'), res.body);
});
it('gdpr interstitial should still apply if email requirement is disabled', async () => {