diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-14 06:12:37 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-14 06:12:37 +0300 |
commit | 1a92cb5aaf5a1bc1338a5124275c35b18d295255 (patch) | |
tree | 6c93f80589c59fd20aad0664877c5cc1372a5c9f /spec/frontend/packages_and_registries/package_registry/pages | |
parent | 3521fa595b022a402f3ed1e8c423021e6ad8ae49 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/packages_and_registries/package_registry/pages')
-rw-r--r-- | spec/frontend/packages_and_registries/package_registry/pages/details_spec.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/frontend/packages_and_registries/package_registry/pages/details_spec.js b/spec/frontend/packages_and_registries/package_registry/pages/details_spec.js index de78e6bb87b..6078657daf4 100644 --- a/spec/frontend/packages_and_registries/package_registry/pages/details_spec.js +++ b/spec/frontend/packages_and_registries/package_registry/pages/details_spec.js @@ -328,8 +328,8 @@ describe('PackagesApp', () => { findPackageFiles().vm.$emit('delete-files', [fileToDelete]); - expect(showDeletePackageSpy).not.toBeCalled(); - expect(showDeleteFileSpy).toBeCalled(); + expect(showDeletePackageSpy).not.toHaveBeenCalled(); + expect(showDeleteFileSpy).toHaveBeenCalled(); }); it('when its the only file opens delete package confirmation modal', async () => { @@ -357,8 +357,8 @@ describe('PackagesApp', () => { findPackageFiles().vm.$emit('delete-files', [fileToDelete]); - expect(showDeletePackageSpy).toBeCalled(); - expect(showDeleteFileSpy).not.toBeCalled(); + expect(showDeletePackageSpy).toHaveBeenCalled(); + expect(showDeleteFileSpy).not.toHaveBeenCalled(); }); it('confirming on the modal sets the loading state', async () => { @@ -443,7 +443,7 @@ describe('PackagesApp', () => { findPackageFiles().vm.$emit('delete-files', packageFiles()); - expect(showDeleteFilesSpy).toBeCalled(); + expect(showDeleteFilesSpy).toHaveBeenCalled(); }); it('confirming on the modal sets the loading state', async () => { @@ -532,7 +532,7 @@ describe('PackagesApp', () => { findPackageFiles().vm.$emit('delete-files', packageFiles()); - expect(showDeletePackageSpy).toBeCalled(); + expect(showDeletePackageSpy).toHaveBeenCalled(); }); }); }); |