Skip to content

Commit

Permalink
test: fix moderation note test
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Apr 23, 2024
1 parent c73f759 commit fed5165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '&lt;svg&#x2F;onload=alert(document.location);&#x2F;&#x2F;');
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);
Expand Down

0 comments on commit fed5165

Please sign in to comment.