test: fix test

This commit is contained in:
Barış Soner Uşaklı
2024-12-09 19:16:09 -05:00
parent bb0ff6d602
commit b05dc7f7bd

View File

@@ -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);