diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-09 09:08:36 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-09 09:08:36 +0000 |
commit | a74ca2457e7c8a26ff5e12211d741b473c86c0b8 (patch) | |
tree | 94c510c39dc9646ffd0c3af676ada798af74a444 /spec/frontend/batch_comments | |
parent | 06af519348e7254062a7d03ef3e421356ff8c64a (diff) | |
download | gitlab-ce-a74ca2457e7c8a26ff5e12211d741b473c86c0b8.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/batch_comments')
6 files changed, 0 insertions, 21 deletions
diff --git a/spec/frontend/batch_comments/components/diff_file_drafts_spec.js b/spec/frontend/batch_comments/components/diff_file_drafts_spec.js index c922d6a9809..f667ebc0fcb 100644 --- a/spec/frontend/batch_comments/components/diff_file_drafts_spec.js +++ b/spec/frontend/batch_comments/components/diff_file_drafts_spec.js @@ -28,10 +28,6 @@ describe('Batch comments diff file drafts component', () => { }); } - afterEach(() => { - vm.destroy(); - }); - it('renders list of draft notes', () => { factory(); diff --git a/spec/frontend/batch_comments/components/draft_note_spec.js b/spec/frontend/batch_comments/components/draft_note_spec.js index 924d88866ee..159e36c1364 100644 --- a/spec/frontend/batch_comments/components/draft_note_spec.js +++ b/spec/frontend/batch_comments/components/draft_note_spec.js @@ -49,10 +49,6 @@ describe('Batch comments draft note component', () => { draft = createDraft(); }); - afterEach(() => { - wrapper.destroy(); - }); - it('renders template', () => { createComponent(); expect(wrapper.findComponent(GlBadge).exists()).toBe(true); diff --git a/spec/frontend/batch_comments/components/drafts_count_spec.js b/spec/frontend/batch_comments/components/drafts_count_spec.js index c3a7946c85c..850a7efb4ed 100644 --- a/spec/frontend/batch_comments/components/drafts_count_spec.js +++ b/spec/frontend/batch_comments/components/drafts_count_spec.js @@ -15,10 +15,6 @@ describe('Batch comments drafts count component', () => { wrapper = mount(DraftsCount, { store }); }); - afterEach(() => { - wrapper.destroy(); - }); - it('renders count', () => { expect(wrapper.text()).toContain('1'); }); diff --git a/spec/frontend/batch_comments/components/preview_item_spec.js b/spec/frontend/batch_comments/components/preview_item_spec.js index 6a99294f855..a19a72af813 100644 --- a/spec/frontend/batch_comments/components/preview_item_spec.js +++ b/spec/frontend/batch_comments/components/preview_item_spec.js @@ -26,10 +26,6 @@ describe('Batch comments draft preview item component', () => { wrapper = mount(PreviewItem, { store, propsData: { draft, isLast } }); } - afterEach(() => { - wrapper.destroy(); - }); - it('renders text content', () => { createComponent(false, { note_html: '<img src="" /><p>Hello world</p>' }); diff --git a/spec/frontend/batch_comments/components/review_bar_spec.js b/spec/frontend/batch_comments/components/review_bar_spec.js index 0a4c9ff62e4..923e86a7e64 100644 --- a/spec/frontend/batch_comments/components/review_bar_spec.js +++ b/spec/frontend/batch_comments/components/review_bar_spec.js @@ -20,10 +20,6 @@ describe('Batch comments review bar component', () => { document.body.className = ''; }); - afterEach(() => { - wrapper.destroy(); - }); - it('adds review-bar-visible class to body when review bar is mounted', async () => { expect(document.body.classList.contains(REVIEW_BAR_VISIBLE_CLASS_NAME)).toBe(false); diff --git a/spec/frontend/batch_comments/components/submit_dropdown_spec.js b/spec/frontend/batch_comments/components/submit_dropdown_spec.js index 003a6d86371..ac6198ec8b5 100644 --- a/spec/frontend/batch_comments/components/submit_dropdown_spec.js +++ b/spec/frontend/batch_comments/components/submit_dropdown_spec.js @@ -47,7 +47,6 @@ const findForm = () => wrapper.findByTestId('submit-gl-form'); describe('Batch comments submit dropdown', () => { afterEach(() => { - wrapper.destroy(); window.mrTabs = null; }); |