diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-09 12:08:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-09 12:08:36 +0300 |
commit | a74ca2457e7c8a26ff5e12211d741b473c86c0b8 (patch) | |
tree | 94c510c39dc9646ffd0c3af676ada798af74a444 /spec/frontend/repository | |
parent | 06af519348e7254062a7d03ef3e421356ff8c64a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/repository')
20 files changed, 0 insertions, 63 deletions
diff --git a/spec/frontend/repository/components/blob_button_group_spec.js b/spec/frontend/repository/components/blob_button_group_spec.js index 33a85c04fcf..96dedd54126 100644 --- a/spec/frontend/repository/components/blob_button_group_spec.js +++ b/spec/frontend/repository/components/blob_button_group_spec.js @@ -38,10 +38,6 @@ describe('BlobButtonGroup component', () => { }); }; - afterEach(() => { - wrapper.destroy(); - }); - const findDeleteBlobModal = () => wrapper.findComponent(DeleteBlobModal); const findUploadBlobModal = () => wrapper.findComponent(UploadBlobModal); const findDeleteButton = () => wrapper.findByTestId('delete'); diff --git a/spec/frontend/repository/components/blob_content_viewer_spec.js b/spec/frontend/repository/components/blob_content_viewer_spec.js index 03a8ee6ac5d..f19952f58ab 100644 --- a/spec/frontend/repository/components/blob_content_viewer_spec.js +++ b/spec/frontend/repository/components/blob_content_viewer_spec.js @@ -175,7 +175,6 @@ describe('Blob content viewer component', () => { }); afterEach(() => { - wrapper.destroy(); mockAxios.reset(); }); diff --git a/spec/frontend/repository/components/blob_controls_spec.js b/spec/frontend/repository/components/blob_controls_spec.js index 0d52542397f..3ced5f6c4d2 100644 --- a/spec/frontend/repository/components/blob_controls_spec.js +++ b/spec/frontend/repository/components/blob_controls_spec.js @@ -50,8 +50,6 @@ describe('Blob controls component', () => { beforeEach(() => createComponent()); - afterEach(() => wrapper.destroy()); - it('renders a find button with the correct href', () => { expect(findFindButton().attributes('href')).toBe('find/file.js'); }); diff --git a/spec/frontend/repository/components/blob_viewers/lfs_viewer_spec.js b/spec/frontend/repository/components/blob_viewers/lfs_viewer_spec.js index 599443bf862..b4f4b0058de 100644 --- a/spec/frontend/repository/components/blob_viewers/lfs_viewer_spec.js +++ b/spec/frontend/repository/components/blob_viewers/lfs_viewer_spec.js @@ -21,8 +21,6 @@ describe('LFS Viewer', () => { beforeEach(() => createComponent()); - afterEach(() => wrapper.destroy()); - it('renders the correct text', () => { expect(wrapper.text()).toBe( 'This content could not be displayed because it is stored in LFS. You can download it instead.', diff --git a/spec/frontend/repository/components/breadcrumbs_spec.js b/spec/frontend/repository/components/breadcrumbs_spec.js index c2f34f79f89..8b7a7d91125 100644 --- a/spec/frontend/repository/components/breadcrumbs_spec.js +++ b/spec/frontend/repository/components/breadcrumbs_spec.js @@ -42,10 +42,6 @@ describe('Repository breadcrumbs component', () => { const findUploadBlobModal = () => wrapper.findComponent(UploadBlobModal); const findNewDirectoryModal = () => wrapper.findComponent(NewDirectoryModal); - afterEach(() => { - wrapper.destroy(); - }); - it.each` path | linkCount ${'/'} | ${1} diff --git a/spec/frontend/repository/components/delete_blob_modal_spec.js b/spec/frontend/repository/components/delete_blob_modal_spec.js index b5996816ad8..5846174296a 100644 --- a/spec/frontend/repository/components/delete_blob_modal_spec.js +++ b/spec/frontend/repository/components/delete_blob_modal_spec.js @@ -49,10 +49,6 @@ describe('DeleteBlobModal', () => { await findCommitTextarea().vm.$emit('input', commitText); }; - afterEach(() => { - wrapper.destroy(); - }); - it('renders Modal component', () => { createComponent(); diff --git a/spec/frontend/repository/components/directory_download_links_spec.js b/spec/frontend/repository/components/directory_download_links_spec.js index 72c4165c2e9..3739829c759 100644 --- a/spec/frontend/repository/components/directory_download_links_spec.js +++ b/spec/frontend/repository/components/directory_download_links_spec.js @@ -16,10 +16,6 @@ function factory(currentPath) { } describe('Repository directory download links component', () => { - afterEach(() => { - vm.destroy(); - }); - it.each` path ${'app'} diff --git a/spec/frontend/repository/components/fork_suggestion_spec.js b/spec/frontend/repository/components/fork_suggestion_spec.js index 36a48a3fdb8..a9e5c18c0a9 100644 --- a/spec/frontend/repository/components/fork_suggestion_spec.js +++ b/spec/frontend/repository/components/fork_suggestion_spec.js @@ -14,8 +14,6 @@ describe('ForkSuggestion component', () => { beforeEach(() => createComponent()); - afterEach(() => wrapper.destroy()); - const { i18n } = ForkSuggestion; const findMessage = () => wrapper.findByTestId('message'); const findForkButton = () => wrapper.findByTestId('fork'); diff --git a/spec/frontend/repository/components/last_commit_spec.js b/spec/frontend/repository/components/last_commit_spec.js index 7226e7baa36..2ef93a4565a 100644 --- a/spec/frontend/repository/components/last_commit_spec.js +++ b/spec/frontend/repository/components/last_commit_spec.js @@ -114,7 +114,6 @@ const createComponent = async (data = {}) => { }; afterEach(() => { - wrapper.destroy(); mockResolver = null; }); diff --git a/spec/frontend/repository/components/new_directory_modal_spec.js b/spec/frontend/repository/components/new_directory_modal_spec.js index 06e3dcbe9ea..d70021650ed 100644 --- a/spec/frontend/repository/components/new_directory_modal_spec.js +++ b/spec/frontend/repository/components/new_directory_modal_spec.js @@ -76,10 +76,6 @@ describe('NewDirectoryModal', () => { await waitForPromises(); }; - afterEach(() => { - wrapper.destroy(); - }); - it('renders modal component', () => { createComponent(); diff --git a/spec/frontend/repository/components/preview/index_spec.js b/spec/frontend/repository/components/preview/index_spec.js index 416cc7d360a..8a88c5b9c61 100644 --- a/spec/frontend/repository/components/preview/index_spec.js +++ b/spec/frontend/repository/components/preview/index_spec.js @@ -49,10 +49,6 @@ describe('Repository file preview component', () => { mockReadmeData.mockResolvedValue(MOCK_README_DATA); }); - afterEach(() => { - wrapper.destroy(); - }); - it('handles hash after render', async () => { await waitForPromises(); expect(handleLocationHash).toHaveBeenCalled(); diff --git a/spec/frontend/repository/components/table/index_spec.js b/spec/frontend/repository/components/table/index_spec.js index 8b987551b33..f7be367887c 100644 --- a/spec/frontend/repository/components/table/index_spec.js +++ b/spec/frontend/repository/components/table/index_spec.js @@ -88,10 +88,6 @@ function factory({ path, isLoading = false, hasMore = true, entries = {}, commit const findTableRows = () => vm.findAllComponents(TableRow); describe('Repository table component', () => { - afterEach(() => { - vm.destroy(); - }); - it.each` path | ref ${'/'} | ${'main'} diff --git a/spec/frontend/repository/components/table/parent_row_spec.js b/spec/frontend/repository/components/table/parent_row_spec.js index 03fb4242e40..77822a148b7 100644 --- a/spec/frontend/repository/components/table/parent_row_spec.js +++ b/spec/frontend/repository/components/table/parent_row_spec.js @@ -26,10 +26,6 @@ function factory(path, loadingPath) { } describe('Repository parent row component', () => { - afterEach(() => { - vm.destroy(); - }); - it.each` path | to ${'app'} | ${'/-/tree/main/'} diff --git a/spec/frontend/repository/components/table/row_spec.js b/spec/frontend/repository/components/table/row_spec.js index 02796d487df..055616d6e8e 100644 --- a/spec/frontend/repository/components/table/row_spec.js +++ b/spec/frontend/repository/components/table/row_spec.js @@ -47,10 +47,6 @@ describe('Repository table row component', () => { const findRouterLink = () => vm.findComponent(RouterLinkStub); const findIntersectionObserver = () => vm.findComponent(GlIntersectionObserver); - afterEach(() => { - vm.destroy(); - }); - it('renders table row', async () => { factory({ id: '1', diff --git a/spec/frontend/repository/components/tree_content_spec.js b/spec/frontend/repository/components/tree_content_spec.js index 4f49fe2fa65..76a50c41a66 100644 --- a/spec/frontend/repository/components/tree_content_spec.js +++ b/spec/frontend/repository/components/tree_content_spec.js @@ -45,10 +45,6 @@ function factory(path, appoloMockResponse = mockResponse) { describe('Repository table component', () => { const findFileTable = () => vm.findComponent(FileTable); - afterEach(() => { - vm.destroy(); - }); - it('renders file preview', async () => { factory('/'); diff --git a/spec/frontend/repository/components/upload_blob_modal_spec.js b/spec/frontend/repository/components/upload_blob_modal_spec.js index 2397fe000cf..21699f81900 100644 --- a/spec/frontend/repository/components/upload_blob_modal_spec.js +++ b/spec/frontend/repository/components/upload_blob_modal_spec.js @@ -57,11 +57,6 @@ describe('UploadBlobModal', () => { const cancelButtonDisabledState = () => findModal().props('actionCancel').attributes[0].disabled; const actionButtonLoadingState = () => findModal().props('actionPrimary').attributes[0].loading; - afterEach(() => { - wrapper.destroy(); - wrapper = null; - }); - describe.each` canPushCode | displayBranchName | displayForkedBranchMessage ${true} | ${true} | ${false} diff --git a/spec/frontend/repository/mixins/highlight_mixin_spec.js b/spec/frontend/repository/mixins/highlight_mixin_spec.js index 7c48fe440d2..5f872749581 100644 --- a/spec/frontend/repository/mixins/highlight_mixin_spec.js +++ b/spec/frontend/repository/mixins/highlight_mixin_spec.js @@ -44,8 +44,6 @@ describe('HighlightMixin', () => { beforeEach(() => createComponent()); - afterEach(() => wrapper.destroy()); - describe('initHighlightWorker', () => { const firstSeventyLines = contentArray.slice(0, LINES_PER_CHUNK).join('\n'); diff --git a/spec/frontend/repository/pages/blob_spec.js b/spec/frontend/repository/pages/blob_spec.js index 4fe6188370e..366523e2b8b 100644 --- a/spec/frontend/repository/pages/blob_spec.js +++ b/spec/frontend/repository/pages/blob_spec.js @@ -16,10 +16,6 @@ describe('Repository blob page component', () => { }); }); - afterEach(() => { - wrapper.destroy(); - }); - it('has a Blob Content Viewer component', () => { expect(findBlobContentViewer().exists()).toBe(true); expect(findBlobContentViewer().props('path')).toBe(path); diff --git a/spec/frontend/repository/pages/index_spec.js b/spec/frontend/repository/pages/index_spec.js index 559257d414c..e50557e7d61 100644 --- a/spec/frontend/repository/pages/index_spec.js +++ b/spec/frontend/repository/pages/index_spec.js @@ -13,8 +13,6 @@ describe('Repository index page component', () => { } afterEach(() => { - wrapper.destroy(); - updateElementsVisibility.mockClear(); }); diff --git a/spec/frontend/repository/pages/tree_spec.js b/spec/frontend/repository/pages/tree_spec.js index 36662696c91..b1529d77c7d 100644 --- a/spec/frontend/repository/pages/tree_spec.js +++ b/spec/frontend/repository/pages/tree_spec.js @@ -12,8 +12,6 @@ describe('Repository tree page component', () => { } afterEach(() => { - wrapper.destroy(); - updateElementsVisibility.mockClear(); }); |