Skip to content

Node.js based forum software built for the modern web

test: log failing response

Barış Soner Uşaklı284506deed66
diff --git a/test/controllers.js b/test/controllers.js
index 76035c7273..4ab947ce0f 100644
--- a/test/controllers.js
+++ b/test/controllers.js
@@ -827,7 +827,7 @@ describe('Controllers', () => {
});
assert.strictEqual(response.statusCode, 302);
- assert(response.headers.location.match(/\/uid\/\d+$/));
+ assert(response.headers.location.match(/\/uid\/\d+$/), JSON.stringify(response, null, 2));
});
});
});