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:
Diffstat (limited to 'spec/frontend/sidebar/mock_data.js')
-rw-r--r--spec/frontend/sidebar/mock_data.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/spec/frontend/sidebar/mock_data.js b/spec/frontend/sidebar/mock_data.js
index d6287b93fb9..9fab24d7518 100644
--- a/spec/frontend/sidebar/mock_data.js
+++ b/spec/frontend/sidebar/mock_data.js
@@ -530,6 +530,7 @@ export const mockMilestone1 = {
title: 'Foobar Milestone',
webUrl: 'http://gdk.test:3000/groups/gitlab-org/-/milestones/1',
state: 'active',
+ expired: false,
};
export const mockMilestone2 = {
@@ -538,6 +539,7 @@ export const mockMilestone2 = {
title: 'Awesome Milestone',
webUrl: 'http://gdk.test:3000/groups/gitlab-org/-/milestones/2',
state: 'active',
+ expired: false,
};
export const mockProjectMilestonesResponse = {
@@ -571,6 +573,7 @@ export const mockMilestoneMutationResponse = {
id: 'gid://gitlab/Milestone/2',
title: 'Awesome Milestone',
state: 'active',
+ expired: false,
__typename: 'Milestone',
},
__typename: 'Issue',
@@ -609,4 +612,38 @@ export const issuableTimeTrackingResponse = {
},
};
+export const todosResponse = {
+ data: {
+ workspace: {
+ __typename: 'Group',
+ issuable: {
+ __typename: 'Epic',
+ id: 'gid://gitlab/Epic/4',
+ currentUserTodos: {
+ nodes: [
+ {
+ id: 'gid://gitlab/Todo/433',
+ },
+ ],
+ },
+ },
+ },
+ },
+};
+
+export const noTodosResponse = {
+ data: {
+ workspace: {
+ __typename: 'Group',
+ issuable: {
+ __typename: 'Epic',
+ id: 'gid://gitlab/Epic/4',
+ currentUserTodos: {
+ nodes: [],
+ },
+ },
+ },
+ },
+};
+
export default mockData;