diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-16 15:08:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-16 15:08:27 +0300 |
commit | 377d420e3d7e3f066c409714cbb9f7bb0a4882b6 (patch) | |
tree | 4ba0cb1b9487bf386c3c0e5d76a2191f285b6243 /spec/frontend/batch_comments/components | |
parent | bc9b43904d491c7b864c8fb6ba06ae0f6625db0d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/batch_comments/components')
3 files changed, 6 insertions, 3 deletions
diff --git a/spec/frontend/batch_comments/components/draft_note_spec.js b/spec/frontend/batch_comments/components/draft_note_spec.js index 3d4eddedf34..2dfcdd551a1 100644 --- a/spec/frontend/batch_comments/components/draft_note_spec.js +++ b/spec/frontend/batch_comments/components/draft_note_spec.js @@ -6,9 +6,10 @@ import DraftNote from '~/batch_comments/components/draft_note.vue'; import PublishButton from '~/batch_comments/components/publish_button.vue'; import { createStore } from '~/batch_comments/stores'; import NoteableNote from '~/notes/components/noteable_note.vue'; -import '~/behaviors/markdown/render_gfm'; import { createDraft } from '../mock_data'; +jest.mock('~/behaviors/markdown/render_gfm'); + const NoteableNoteStub = stubComponent(NoteableNote, { template: ` <div> diff --git a/spec/frontend/batch_comments/components/preview_item_spec.js b/spec/frontend/batch_comments/components/preview_item_spec.js index 6a104f0c787..6a99294f855 100644 --- a/spec/frontend/batch_comments/components/preview_item_spec.js +++ b/spec/frontend/batch_comments/components/preview_item_spec.js @@ -3,9 +3,10 @@ import PreviewItem from '~/batch_comments/components/preview_item.vue'; import { createStore } from '~/batch_comments/stores'; import diffsModule from '~/diffs/store/modules'; import notesModule from '~/notes/stores/modules'; -import '~/behaviors/markdown/render_gfm'; import { createDraft } from '../mock_data'; +jest.mock('~/behaviors/markdown/render_gfm'); + describe('Batch comments draft preview item component', () => { let wrapper; let draft; diff --git a/spec/frontend/batch_comments/components/publish_dropdown_spec.js b/spec/frontend/batch_comments/components/publish_dropdown_spec.js index d1b7160d231..e89934c0192 100644 --- a/spec/frontend/batch_comments/components/publish_dropdown_spec.js +++ b/spec/frontend/batch_comments/components/publish_dropdown_spec.js @@ -4,9 +4,10 @@ import Vue from 'vue'; import Vuex from 'vuex'; import PreviewDropdown from '~/batch_comments/components/preview_dropdown.vue'; import { createStore } from '~/mr_notes/stores'; -import '~/behaviors/markdown/render_gfm'; import { createDraft } from '../mock_data'; +jest.mock('~/behaviors/markdown/render_gfm'); + Vue.use(Vuex); describe('Batch comments publish dropdown component', () => { |