test: add url/statusCode to failing test

This commit is contained in:
Barış Soner Uşaklı
2025-03-18 21:22:07 -04:00
parent ed57f89659
commit 8982923e41

View File

@@ -228,7 +228,7 @@ describe('Controllers', () => {
if (route.body) { if (route.body) {
assert.strictEqual(String(body), route.body); assert.strictEqual(String(body), route.body);
} else { } else {
assert(body); assert(body, `No body returned for ${route.url} ${response.statusCode}`);
} }
}); });
}); });