test: add another assert for random failing test

This commit is contained in:
Barış Soner Uşaklı
2021-11-09 11:05:03 -05:00
parent 61d1f56500
commit ae64b9f495

View File

@@ -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);
});