From bfb63061c72d5d693bc503f024d1f27bae854e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 21 Sep 2022 12:49:15 -0400 Subject: [PATCH] test: fix theme test --- test/socket.io.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/socket.io.js b/test/socket.io.js index a4db2b7aaa..83e5635cd3 100644 --- a/test/socket.io.js +++ b/test/socket.io.js @@ -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(); });