diff options
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; }); |