Node.js based forum software built for the modern web
test: fix messaging test
Barış Soner Uşaklıba47a29984e4
diff --git a/test/messaging.js b/test/messaging.jsindex e0453bca2b..aef0b331df 100644--- a/test/messaging.js+++ b/test/messaging.js@@ -250,8 +250,10 @@ describe('Messaging Library', () => {roomId: roomData.roomId,});- assert.strictEqual(data.messages[0].content, `[[modules:chat.system.user-join, <img src="x" />, ${data.messages[0].timestampISO}]]`);- assert.strictEqual(data.messages[1].content, `[[modules:chat.system.user-join, , ${data.messages[1].timestampISO}]]`);+ assert.strictEqual(data.messages[0].content, `<img src="x" /> has joined the room <span class="timeago" title="${data.messages[0].timestampISO}"></span>`);+++ assert.strictEqual(data.messages[1].content, ` has joined the room <span class="timeago" title="${data.messages[1].timestampISO}"></span>`);meta.config.showFullnameAsDisplayName = oldValue;});