Commit 8a5fb48e authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'migrate-notes-specs' into 'master'

Migrate notes specs to Jest

See merge request gitlab-org/gitlab!20654
parents c292f55a 651f2074
...@@ -2,7 +2,7 @@ import { shallowMount, createLocalVue } from '@vue/test-utils'; ...@@ -2,7 +2,7 @@ import { shallowMount, createLocalVue } from '@vue/test-utils';
import createStore from '~/notes/stores'; import createStore from '~/notes/stores';
import noteActions from '~/notes/components/note_actions.vue'; import noteActions from '~/notes/components/note_actions.vue';
import { TEST_HOST } from 'spec/test_constants'; import { TEST_HOST } from 'spec/test_constants';
import { userDataMock } from 'spec/notes/mock_data'; import { userDataMock } from '../../../../spec/frontend/notes/mock_data';
describe('noteActions', () => { describe('noteActions', () => {
let wrapper; let wrapper;
...@@ -16,6 +16,7 @@ describe('noteActions', () => { ...@@ -16,6 +16,7 @@ describe('noteActions', () => {
propsData, propsData,
localVue, localVue,
sync: false, sync: false,
attachToDocument: true,
}); });
}; };
......
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