Commit 8013b1f5 authored by Tim Zallmann's avatar Tim Zallmann Committed by Jose Ivan Vargas

Fixed Test for Notes Spec

parent c33ceff6
......@@ -770,17 +770,16 @@ import '~/notes';
});
it('should return a escaped user name', () => {
const currentUserNameXSS = 'Foo <script>alert("XSS")</script>';
const currentUserFullnameXSS = 'Foo <script>alert("XSS")</script>';
const $tempNote = this.notes.createPlaceholderNote({
formContent: sampleComment,
uniqueId,
isDiscussionNote: false,
currentUsername,
currentUserNameXSS,
currentUserFullname: currentUserFullnameXSS,
currentUserAvatar,
});
const $tempNoteHeader = $tempNote.find('.note-header');
expect($tempNoteHeader.find('.hidden-xs').text().trim()).toEqual('Foo &lt;script&gt;alert(&quot;XSS&quot;)&lt;/script&gt;');
});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment