test: update socket.io test

isekai-main
Barış Soner Uşaklı 2 years ago
parent 4d2d76897a
commit e0b2065802

@ -110,8 +110,7 @@ describe('socket.io', () => {
it('should return error for invalid eventName type', (done) => { it('should return error for invalid eventName type', (done) => {
const eventName = ['topics.loadMoreTags']; const eventName = ['topics.loadMoreTags'];
io.emit(eventName, (err) => { io.emit(eventName, (err) => {
const eventAsString = String(eventName); assert.strictEqual(err.message, `[[error:invalid-event, object]]`);
assert.strictEqual(err.message, `[[error:invalid-event, ${eventAsString}]]`);
done(); done();
}); });
}); });

Loading…
Cancel
Save