Skip to content

Node.js based forum software built for the modern web

test: fix redirect test

Barış Soner Uşaklı35e689cff592
diff --git a/test/controllers.js b/test/controllers.js
index 9c6790d5c5..70e3b8a80a 100644
--- a/test/controllers.js
+++ b/test/controllers.js
@@ -2037,8 +2037,8 @@ describe('Controllers', () => {
request(`${nconf.get('url')}/api/post/${pid}`, { json: true }, (err, res, body) => {
assert.ifError(err);
assert.equal(res.statusCode, 200);
- assert.equal(res.headers['x-redirect'], '/topic/1/test-topic-title/1');
- assert.equal(body, '/topic/1/test-topic-title/1');
+ assert.equal(res.headers['x-redirect'], '/topic/1/test-topic-title');
+ assert.equal(body, '/topic/1/test-topic-title');
done();
});
});