Skip to content

Node.js based forum software built for the modern web

test: add url/statusCode to failing test

Barış Soner Uşaklı8982923e4125
diff --git a/test/controllers.js b/test/controllers.js
index c664980aee..c0c7b22a7f 100644
--- a/test/controllers.js
+++ b/test/controllers.js
@@ -228,7 +228,7 @@ describe('Controllers', () => {
if (route.body) {
assert.strictEqual(String(body), route.body);
} else {
- assert(body);
+ assert(body, `No body returned for ${route.url} ${response.statusCode}`);
}
});
});