Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-25 21:15:16 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-25 21:15:16 +0300
commit62866a623e24242c6f7a1a93dc2aca1467d6a6ae (patch)
tree322ce00c652d376c949f1d45c39764eeb5bce620 /spec/frontend/ml/model_registry/mock_data.js
parentf8888a274f6b095075fd8648d3732ad577a3a742 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/ml/model_registry/mock_data.js')
-rw-r--r--spec/frontend/ml/model_registry/mock_data.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/frontend/ml/model_registry/mock_data.js b/spec/frontend/ml/model_registry/mock_data.js
index bed0de36e5d..1c606e79fa2 100644
--- a/spec/frontend/ml/model_registry/mock_data.js
+++ b/spec/frontend/ml/model_registry/mock_data.js
@@ -15,3 +15,33 @@ export const makeModel = ({ latestVersion } = { latestVersion: LATEST_VERSION })
export const MODEL = makeModel();
export const MODEL_VERSION = { version: '1.2.3', model: MODEL };
+
+export const mockModels = [
+ {
+ name: 'model_1',
+ version: '1.0',
+ path: 'path/to/model_1',
+ versionCount: 3,
+ },
+ {
+ name: 'model_2',
+ version: '1.1',
+ path: 'path/to/model_2',
+ versionCount: 1,
+ },
+];
+
+export const modelWithoutVersion = {
+ name: 'model_without_version',
+ path: 'path/to/model_without_version',
+ versionCount: 0,
+};
+
+export const startCursor = 'eyJpZCI6IjE2In0';
+
+export const defaultPageInfo = Object.freeze({
+ startCursor,
+ endCursor: 'eyJpZCI6IjIifQ',
+ hasNextPage: true,
+ hasPreviousPage: true,
+});