mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
test: fix moderation note test
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user