diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-20 18:19:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-20 18:19:03 +0300 |
commit | 14bd84b61276ef29b97d23642d698de769bacfd2 (patch) | |
tree | f9eba90140c1bd874211dea17750a0d422c04080 /spec/frontend/packages_and_registries/package_registry/components/list | |
parent | 891c388697b2db0d8ee0c8358a9bdbf6dc56d581 (diff) |
Add latest changes from gitlab-org/gitlab@15-10-stable-eev15.10.0-rc42
Diffstat (limited to 'spec/frontend/packages_and_registries/package_registry/components/list')
6 files changed, 2 insertions, 29 deletions
diff --git a/spec/frontend/packages_and_registries/package_registry/components/list/package_list_row_spec.js b/spec/frontend/packages_and_registries/package_registry/components/list/package_list_row_spec.js index 2a78cfb13f9..91417d2fc9f 100644 --- a/spec/frontend/packages_and_registries/package_registry/components/list/package_list_row_spec.js +++ b/spec/frontend/packages_and_registries/package_registry/components/list/package_list_row_spec.js @@ -1,5 +1,5 @@ import { GlFormCheckbox, GlSprintf, GlTruncate } from '@gitlab/ui'; -import Vue, { nextTick } from 'vue'; +import Vue from 'vue'; import VueRouter from 'vue-router'; import { shallowMountExtended } from 'helpers/vue_test_utils_helper'; import { createMockDirective, getBinding } from 'helpers/vue_mock_directive'; @@ -67,15 +67,11 @@ describe('packages_list_row', () => { selected, }, directives: { - GlTooltip: createMockDirective(), + GlTooltip: createMockDirective('gl-tooltip'), }, }); }; - afterEach(() => { - wrapper.destroy(); - }); - it('renders', () => { mountComponent(); expect(wrapper.element).toMatchSnapshot(); @@ -141,7 +137,6 @@ describe('packages_list_row', () => { findDeleteDropdown().vm.$emit('click'); - await nextTick(); expect(wrapper.emitted('delete')).toHaveLength(1); }); }); diff --git a/spec/frontend/packages_and_registries/package_registry/components/list/packages_list_spec.js b/spec/frontend/packages_and_registries/package_registry/components/list/packages_list_spec.js index 610640e0ca3..ae990f3ea00 100644 --- a/spec/frontend/packages_and_registries/package_registry/components/list/packages_list_spec.js +++ b/spec/frontend/packages_and_registries/package_registry/components/list/packages_list_spec.js @@ -73,10 +73,6 @@ describe('packages_list', () => { }); }; - afterEach(() => { - wrapper.destroy(); - }); - describe('when is loading', () => { beforeEach(() => { mountComponent({ isLoading: true }); diff --git a/spec/frontend/packages_and_registries/package_registry/components/list/packages_search_spec.js b/spec/frontend/packages_and_registries/package_registry/components/list/packages_search_spec.js index a884959ab62..1250ecaf61f 100644 --- a/spec/frontend/packages_and_registries/package_registry/components/list/packages_search_spec.js +++ b/spec/frontend/packages_and_registries/package_registry/components/list/packages_search_spec.js @@ -46,10 +46,6 @@ describe('Package Search', () => { extractFilterAndSorting.mockReturnValue(defaultQueryParamsMock); }); - afterEach(() => { - wrapper.destroy(); - }); - it('has a registry search component', async () => { mountComponent(); diff --git a/spec/frontend/packages_and_registries/package_registry/components/list/packages_title_spec.js b/spec/frontend/packages_and_registries/package_registry/components/list/packages_title_spec.js index b47515e15c3..1296458155a 100644 --- a/spec/frontend/packages_and_registries/package_registry/components/list/packages_title_spec.js +++ b/spec/frontend/packages_and_registries/package_registry/components/list/packages_title_spec.js @@ -20,11 +20,6 @@ describe('PackageTitle', () => { }); }; - afterEach(() => { - wrapper.destroy(); - wrapper = null; - }); - describe('title area', () => { it('exists', () => { mountComponent(); diff --git a/spec/frontend/packages_and_registries/package_registry/components/list/publish_method_spec.js b/spec/frontend/packages_and_registries/package_registry/components/list/publish_method_spec.js index fcbd7cc6a50..e9119b736c2 100644 --- a/spec/frontend/packages_and_registries/package_registry/components/list/publish_method_spec.js +++ b/spec/frontend/packages_and_registries/package_registry/components/list/publish_method_spec.js @@ -19,10 +19,6 @@ describe('publish_method', () => { }); }; - afterEach(() => { - wrapper.destroy(); - }); - it('renders', () => { mountComponent(); expect(wrapper.element).toMatchSnapshot(); diff --git a/spec/frontend/packages_and_registries/package_registry/components/list/tokens/package_type_token_spec.js b/spec/frontend/packages_and_registries/package_registry/components/list/tokens/package_type_token_spec.js index 8f3c8667c47..c98f5f32344 100644 --- a/spec/frontend/packages_and_registries/package_registry/components/list/tokens/package_type_token_spec.js +++ b/spec/frontend/packages_and_registries/package_registry/components/list/tokens/package_type_token_spec.js @@ -19,11 +19,6 @@ describe('packages_filter', () => { }); }; - afterEach(() => { - wrapper.destroy(); - wrapper = null; - }); - it('binds all of his attrs to filtered search token', () => { mountComponent({ attrs: { foo: 'bar' } }); |