Commit d144852f authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Replace underscore with lodash for ./spec/javascripts/notes/components

parent 891f27a5
import _ from 'underscore'; import { escape } from 'lodash';
import { shallowMount, createLocalVue } from '@vue/test-utils'; import { shallowMount, createLocalVue } from '@vue/test-utils';
import createStore from '~/notes/stores'; import createStore from '~/notes/stores';
import issueNote from '~/notes/components/noteable_note.vue'; import issueNote from '~/notes/components/noteable_note.vue';
...@@ -98,7 +98,7 @@ describe('issue_note', () => { ...@@ -98,7 +98,7 @@ describe('issue_note', () => {
setTimeout(() => { setTimeout(() => {
expect(alertSpy).not.toHaveBeenCalled(); expect(alertSpy).not.toHaveBeenCalled();
expect(wrapper.vm.note.note_html).toEqual(_.escape(noteBody)); expect(wrapper.vm.note.note_html).toEqual(escape(noteBody));
done(); done();
}, 0); }, 0);
}); });
......
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