diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-15 21:09:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-15 21:09:13 +0300 |
commit | 2eafcb0673f7d501d9e3fabde6e950a5dcc24fc2 (patch) | |
tree | e209665d6c7316e8cbc526023675429cb2beebbe /spec/frontend/packages_and_registries/package_registry/mock_data.js | |
parent | 4279dbc29c63f614e6439e104204165ff0517a59 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/packages_and_registries/package_registry/mock_data.js')
-rw-r--r-- | spec/frontend/packages_and_registries/package_registry/mock_data.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/frontend/packages_and_registries/package_registry/mock_data.js b/spec/frontend/packages_and_registries/package_registry/mock_data.js index f247c83c85f..f36c5923532 100644 --- a/spec/frontend/packages_and_registries/package_registry/mock_data.js +++ b/spec/frontend/packages_and_registries/package_registry/mock_data.js @@ -294,6 +294,33 @@ export const packageDestroyMutation = () => ({ }, }); +export const packagesDestroyMutation = () => ({ + data: { + destroyPackages: { + errors: [], + }, + }, +}); + +export const packagesDestroyMutationError = () => ({ + data: { + destroyPackages: null, + }, + errors: [ + { + message: + "The resource that you are attempting to access does not exist or you don't have permission to perform this action", + locations: [ + { + line: 2, + column: 3, + }, + ], + path: ['destroyPackages'], + }, + ], +}); + export const packageDestroyMutationError = () => ({ data: { destroyPackage: null, @@ -320,6 +347,7 @@ export const packageDestroyFilesMutation = () => ({ }, }, }); + export const packageDestroyFilesMutationError = () => ({ data: { destroyPackageFiles: null, |