diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-22 03:08:47 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-22 03:08:47 +0300 |
commit | 66ce6a78f6203652c34bd0532b63c394d5394cc4 (patch) | |
tree | 67408e003b1c4136bb8e35c1e9ac049563c1f1d5 /spec/frontend/notes | |
parent | 1c23b3f1315ba1da3c3765acd34feb5c05bc7704 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/notes')
-rw-r--r-- | spec/frontend/notes/old_notes_spec.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/spec/frontend/notes/old_notes_spec.js b/spec/frontend/notes/old_notes_spec.js index c1c9d5cef4a..5f7a5d57cd8 100644 --- a/spec/frontend/notes/old_notes_spec.js +++ b/spec/frontend/notes/old_notes_spec.js @@ -1,7 +1,6 @@ /* eslint-disable import/no-commonjs, no-new */ import $ from 'jquery'; -import _ from 'underscore'; import MockAdapter from 'axios-mock-adapter'; import '~/behaviors/markdown/render_gfm'; import { createSpyObj } from 'helpers/jest_helpers'; @@ -792,14 +791,11 @@ describe('Old Notes (~/notes.js)', () => { }); it('should return form metadata with sanitized formContent from form reference', () => { - jest.spyOn(_, 'escape'); - sampleComment = '<script>alert("Boom!");</script>'; $form.find('textarea.js-note-text').val(sampleComment); const { formContent } = notes.getFormData($form); - expect(_.escape).toHaveBeenCalledWith(sampleComment); expect(formContent).toEqual('<script>alert("Boom!");</script>'); }); }); @@ -990,7 +986,6 @@ describe('Old Notes (~/notes.js)', () => { beforeEach(() => { notes = new Notes('', []); - jest.spyOn(_, 'escape'); }); it('should return constructed placeholder element for system note based on form contents', () => { |