From b05dc7f7bd8e98024f8df7ace1fa933cdf192dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 9 Dec 2024 19:16:09 -0500 Subject: [PATCH] test: fix test --- test/controllers-admin.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/controllers-admin.js b/test/controllers-admin.js index 7760bf128e..e428efe390 100644 --- a/test/controllers-admin.js +++ b/test/controllers-admin.js @@ -138,7 +138,7 @@ describe('Admin Controllers', () => { }); it('should load general settings page', async () => { - const { response, body } = await request.get(`${nconf.get('url')}/admin/settings`, { jar: jar }); + const { response, body } = await request.get(`${nconf.get('url')}/admin/settings/general`, { jar: jar }); assert.equal(response.statusCode, 200); assert(body); }); @@ -476,6 +476,12 @@ describe('Admin Controllers', () => { assert(body); }); + it('should load /admin/appearance/skins', async () => { + const { response, body } = await request.get(`${nconf.get('url')}/api/admin/appearance/skins`, { jar }); + assert.equal(response.statusCode, 200); + assert(body); + }); + it('should load /admin/appearance/customise', async () => { const { response, body } = await request.get(`${nconf.get('url')}/api/admin/appearance/customise`, { jar }); assert.equal(response.statusCode, 200);