diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-11 18:10:57 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-11 18:10:57 +0300 |
commit | 4f54ec92edd344449ee005fd4dd727fa2e3e3ffd (patch) | |
tree | e8e8fe275493e6af3c572c0b93525c77a4623400 /spec/frontend/packages_and_registries/package_registry/mock_data.js | |
parent | 4d68d8b937211e5cdcf58443ddf693f0f1d13794 (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 5cf81e5cd09..9e5457aa0fe 100644 --- a/spec/frontend/packages_and_registries/package_registry/mock_data.js +++ b/spec/frontend/packages_and_registries/package_registry/mock_data.js @@ -51,6 +51,27 @@ export const packageFiles = () => [ }, ]; +export const packageVersions = () => [ + { + createdAt: '2021-08-10T09:33:54Z', + id: 'gid://gitlab/Packages::Package/243', + name: '@gitlab-org/package-15', + status: 'DEFAULT', + tags: { nodes: packageTags() }, + version: '1.0.1', + __typename: 'Package', + }, + { + createdAt: '2021-08-10T09:33:54Z', + id: 'gid://gitlab/Packages::Package/244', + name: '@gitlab-org/package-15', + status: 'DEFAULT', + tags: { nodes: packageTags() }, + version: '1.0.2', + __typename: 'Package', + }, +]; + export const packageData = (extend) => ({ id: 'gid://gitlab/Packages::Package/111', name: '@gitlab-org/package-15', @@ -105,6 +126,9 @@ export const packageDetailsQuery = (extendPackage) => ({ ...mavenMetadata(), ...nugetMetadata(), }, + project: { + path: 'projectPath', + }, tags: { nodes: packageTags(), __typename: 'PackageTagConnection', @@ -117,6 +141,10 @@ export const packageDetailsQuery = (extendPackage) => ({ nodes: packageFiles(), __typename: 'PackageFileConnection', }, + versions: { + nodes: packageVersions(), + __typename: 'PackageConnection', + }, __typename: 'PackageDetailsType', ...extendPackage, }, |