mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 17:46:16 +02:00
test: update socket.io test
This commit is contained in:
@@ -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();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user