From e0b20658029bcec26528881d9ea14b2793f05305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 28 Mar 2023 08:15:42 -0400 Subject: [PATCH] test: update socket.io test --- test/socket.io.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/socket.io.js b/test/socket.io.js index 110258a0de..3628e3b0d0 100644 --- a/test/socket.io.js +++ b/test/socket.io.js @@ -110,8 +110,7 @@ describe('socket.io', () => { it('should return error for invalid eventName type', (done) => { const eventName = ['topics.loadMoreTags']; io.emit(eventName, (err) => { - const eventAsString = String(eventName); - assert.strictEqual(err.message, `[[error:invalid-event, ${eventAsString}]]`); + assert.strictEqual(err.message, `[[error:invalid-event, object]]`); done(); }); });