fix: tests, new categories go to top now

This commit is contained in:
Barış Soner Uşaklı
2021-02-11 12:58:59 -05:00
parent c953b1b3d1
commit fc90f32ec0

View File

@@ -2091,7 +2091,7 @@ describe('Controllers', () => {
request(`${nconf.get('url')}/api/category/${parentCategory.slug}`, { jar: jar, json: true }, (err, res, body) => { request(`${nconf.get('url')}/api/category/${parentCategory.slug}`, { jar: jar, json: true }, (err, res, body) => {
assert.ifError(err); assert.ifError(err);
assert.equal(res.statusCode, 200); 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(); next();
}); });
}, },