Skip to content

Node.js based forum software built for the modern web

test: add another assert for random failing test

Barış Soner Uşaklıae64b9f4958e
diff --git a/test/controllers.js b/test/controllers.js
index 8a27c80d3c..4ac33196d5 100644
--- a/test/controllers.js
+++ b/test/controllers.js
@@ -378,7 +378,7 @@ describe('Controllers', () => {
json: true,
resolveWithFullResponse: true,
});
-
+ assert(res.body.errors.length, res.body);
assert(res.body.errors.includes('[[error:invalid-email]]'), res.body);
});