From 68fd087567692df5e9d835f5300e45b6779e8718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 12 Dec 2021 13:58:21 -0500 Subject: [PATCH] test: remove old test --- test/socket.io.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/test/socket.io.js b/test/socket.io.js index 5efc2c8d72..e38777c1b3 100644 --- a/test/socket.io.js +++ b/test/socket.io.js @@ -105,22 +105,6 @@ describe('socket.io', () => { }); }); - it('should post a topic', (done) => { - io.emit('topics.post', { - title: 'test topic title', - content: 'test topic main post content', - uid: adminUid, - cid: cid, - }, (err, result) => { - assert.ifError(err); - assert.equal(result.user.username, 'admin'); - assert.equal(result.category.cid, cid); - assert.equal(result.mainPost.content, 'test topic main post content'); - tid = result.tid; - done(); - }); - }); - it('should ban a user', async () => { const apiUser = require('../src/api/users'); await apiUser.ban({ uid: adminUid }, { uid: regularUid, reason: 'spammer' });