breaking: remove socket.emit('posts.reply')

remove socket.emit('posts.getPost')
This commit is contained in:
Barış Soner Uşaklı
2021-12-12 12:19:24 -05:00
parent 6d95684bc8
commit 4604a5724c
5 changed files with 27 additions and 79 deletions

View File

@@ -121,16 +121,6 @@ describe('socket.io', () => {
});
});
it('should reply to topic', (done) => {
io.emit('posts.reply', { tid: tid, uid: adminUid, content: 'test post content' }, (err, result) => {
assert.ifError(err);
assert.equal(result.uid, adminUid);
assert.equal(result.user.username, 'admin');
assert.equal(result.topic.tid, tid);
done();
});
});
it('should ban a user', (done) => {
const socketUser = require('../src/socket.io/user');
socketUser.banUsers({ uid: adminUid }, { uids: [regularUid], reason: 'spammer' }, (err) => {