From fc90f32ec0b0893c7daf9d68562e4303edfea48a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 11 Feb 2021 12:58:59 -0500 Subject: [PATCH] fix: tests, new categories go to top now --- test/controllers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/controllers.js b/test/controllers.js index 3acdf3a089..2c3bc80f43 100644 --- a/test/controllers.js +++ b/test/controllers.js @@ -2091,7 +2091,7 @@ describe('Controllers', () => { request(`${nconf.get('url')}/api/category/${parentCategory.slug}`, { jar: jar, json: true }, (err, res, body) => { assert.ifError(err); assert.equal(res.statusCode, 200); - assert.equal(body.children[1].posts[0].content, 'topic 1 OP'); + assert.equal(body.children[0].posts[0].content, 'topic 1 OP'); next(); }); },