diff options
Diffstat (limited to 'spec/frontend/work_items/mock_data.js')
-rw-r--r-- | spec/frontend/work_items/mock_data.js | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/spec/frontend/work_items/mock_data.js b/spec/frontend/work_items/mock_data.js index 3df30971aef..f33d884144b 100644 --- a/spec/frontend/work_items/mock_data.js +++ b/spec/frontend/work_items/mock_data.js @@ -112,6 +112,7 @@ export const workItemResponseFactory = ({ canUpdate = false, allowsMultipleAssignees = true, assigneesWidgetPresent = true, + parent = null, } = {}) => ({ data: { workItem: { @@ -150,11 +151,6 @@ export const workItemResponseFactory = ({ { __typename: 'WorkItemWidgetHierarchy', type: 'HIERARCHY', - parent: { - id: 'gid://gitlab/Issue/1', - iid: '5', - title: 'Parent title', - }, children: { edges: [ { @@ -164,6 +160,7 @@ export const workItemResponseFactory = ({ }, ], }, + parent, }, ], }, @@ -535,3 +532,11 @@ export const projectLabelsResponse = { }, }, }; + +export const mockParent = { + parent: { + id: 'gid://gitlab/Issue/1', + iid: '5', + title: 'Parent title', + }, +}; |