test: fix theme test

This commit is contained in:
Barış Soner Uşaklı
2022-09-21 12:49:15 -04:00
parent e607c622b3
commit bfb63061c7

View File

@@ -92,13 +92,13 @@ describe('socket.io', () => {
});
it('should get installed themes', (done) => {
const themes = ['nodebb-theme-lavender', 'nodebb-theme-persona', 'nodebb-theme-vanilla'];
const themes = ['nodebb-theme-persona'];
io.emit('admin.themes.getInstalled', (err, data) => {
assert.ifError(err);
assert(data);
const installed = data.map(theme => theme.id);
themes.forEach((theme) => {
assert.notEqual(installed.indexOf(theme), -1);
assert(installed.includes(theme));
});
done();
});