From 35e689cff5924feb9d93891e21e590bfa4cab4ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 16 Aug 2023 20:11:22 -0400 Subject: [PATCH] test: fix redirect test --- test/controllers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }); });