mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-25 08:01:15 +01:00
test: fix theme test
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user