Node.js based forum software built for the modern web
test: fix moderation note test
Barış Soner Uşaklıfed5165ffb6f
diff --git a/test/user.js b/test/user.jsindex 4d65ffaa64..668ec4ec8b 100644--- a/test/user.js+++ b/test/user.js@@ -1683,7 +1683,7 @@ describe('User', () => {await setTimeout(50);await socketUser.setModerationNote({ uid: adminUid }, { uid: testUid, note: '<svg/onload=alert(document.location);//' });const notes = await User.getModerationNotes(testUid, 0, -1);- assert.equal(notes[0].note, '<svg/onload=alert(document.location);//');+ assert.equal(notes[0].note, '');assert.equal(notes[0].uid, adminUid);assert.equal(notes[1].note, 'this is a test user');assert(notes[0].timestamp);