From 857433d12afeccdbbdd222f50c8892a300c86ab0 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 27 Sep 2023 14:46:40 -0400 Subject: [PATCH] fix: breaking tests --- test/messaging.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/messaging.js b/test/messaging.js index 3b4df596ef..826f2e8b3a 100644 --- a/test/messaging.js +++ b/test/messaging.js @@ -435,8 +435,8 @@ describe('Messaging Library', () => { const data = await User.notifications.get(mocks.users.herp.uid); assert(data.unread[0]); const notification = data.unread[0]; - assert.strictEqual(notification.bodyShort, 'New message from foo'); - assert.strictEqual(notification.nid, `chat_${roomId}_${mocks.users.foo.uid}`); + assert.strictEqual(notification.bodyShort, `New message in Room ${roomId}`); + assert(notification.nid.startsWith(`chat_${roomId}_${mocks.users.foo.uid}_`)); assert.strictEqual(notification.path, `${nconf.get('relative_path')}/chats/${roomId}`); });