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/profile | |
parent | 06af519348e7254062a7d03ef3e421356ff8c64a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/profile')
6 files changed, 0 insertions, 27 deletions
diff --git a/spec/frontend/profile/account/components/delete_account_modal_spec.js b/spec/frontend/profile/account/components/delete_account_modal_spec.js index e4a316e1ee7..9a8f82f0028 100644 --- a/spec/frontend/profile/account/components/delete_account_modal_spec.js +++ b/spec/frontend/profile/account/components/delete_account_modal_spec.js @@ -40,12 +40,6 @@ describe('DeleteAccountModal component', () => { vm = wrapper.vm; }; - afterEach(() => { - wrapper.destroy(); - wrapper = null; - vm = null; - }); - const findElements = () => { const confirmation = vm.confirmWithPassword ? 'password' : 'username'; return { diff --git a/spec/frontend/profile/account/components/update_username_spec.js b/spec/frontend/profile/account/components/update_username_spec.js index 6b325d70561..d922820601e 100644 --- a/spec/frontend/profile/account/components/update_username_spec.js +++ b/spec/frontend/profile/account/components/update_username_spec.js @@ -42,7 +42,6 @@ describe('UpdateUsername component', () => { }); afterEach(() => { - wrapper.destroy(); axiosMock.restore(); Vue.config.errorHandler = null; }); diff --git a/spec/frontend/profile/preferences/components/diffs_colors_preview_spec.js b/spec/frontend/profile/preferences/components/diffs_colors_preview_spec.js index e60602ab336..e69bfad765a 100644 --- a/spec/frontend/profile/preferences/components/diffs_colors_preview_spec.js +++ b/spec/frontend/profile/preferences/components/diffs_colors_preview_spec.js @@ -12,11 +12,6 @@ describe('DiffsColorsPreview component', () => { createComponent(); }); - afterEach(() => { - wrapper.destroy(); - wrapper = null; - }); - it('renders diff colors preview', () => { expect(wrapper.element).toMatchSnapshot(); }); diff --git a/spec/frontend/profile/preferences/components/diffs_colors_spec.js b/spec/frontend/profile/preferences/components/diffs_colors_spec.js index 02f501a0b06..e80851d0629 100644 --- a/spec/frontend/profile/preferences/components/diffs_colors_spec.js +++ b/spec/frontend/profile/preferences/components/diffs_colors_spec.js @@ -29,11 +29,6 @@ describe('DiffsColors component', () => { }); } - afterEach(() => { - wrapper.destroy(); - wrapper = null; - }); - it('mounts', () => { createComponent(); diff --git a/spec/frontend/profile/preferences/components/integration_view_spec.js b/spec/frontend/profile/preferences/components/integration_view_spec.js index f650bee7fda..b809f2f4aed 100644 --- a/spec/frontend/profile/preferences/components/integration_view_spec.js +++ b/spec/frontend/profile/preferences/components/integration_view_spec.js @@ -38,11 +38,6 @@ describe('IntegrationView component', () => { const findHiddenField = () => wrapper.findByTestId('profile-preferences-integration-hidden-field'); - afterEach(() => { - wrapper.destroy(); - wrapper = null; - }); - it('should render the form group legend correctly', () => { wrapper = createComponent(); diff --git a/spec/frontend/profile/preferences/components/profile_preferences_spec.js b/spec/frontend/profile/preferences/components/profile_preferences_spec.js index 808e2cf41c9..21167dccda9 100644 --- a/spec/frontend/profile/preferences/components/profile_preferences_spec.js +++ b/spec/frontend/profile/preferences/components/profile_preferences_spec.js @@ -83,11 +83,6 @@ describe('ProfilePreferences component', () => { document.body.classList.add('content-wrapper'); } - afterEach(() => { - wrapper.destroy(); - wrapper = null; - }); - it('should not render Integrations section', () => { wrapper = createComponent(); const views = wrapper.findAllComponents(IntegrationView); |