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

mock_data.js « work_items « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a98722bc4656d753dcfa38b5301d616a82623076 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
export const workItemQueryResponse = {
  workItem: {
    __typename: 'LocalWorkItem',
    id: '1',
    type: 'FEATURE',
    widgets: {
      __typename: 'LocalWorkItemWidgetConnection',
      nodes: [
        {
          __typename: 'LocalTitleWidget',
          type: 'TITLE',
          contentText: 'Test',
        },
      ],
    },
  },
};

export const updateWorkItemMutationResponse = {
  __typename: 'LocalUpdateWorkItemPayload',
  workItem: {
    __typename: 'LocalWorkItem',
    id: '1',
    widgets: {
      __typename: 'LocalWorkItemWidgetConnection',
      nodes: [
        {
          __typename: 'LocalTitleWidget',
          type: 'TITLE',
          enabled: true,
          contentText: 'Updated title',
        },
      ],
    },
  },
};

export const projectWorkItemTypesQueryResponse = {
  data: {
    workspace: {
      id: '1',
      workItemTypes: {
        nodes: [
          { id: 'work-item-1', name: 'Issue' },
          { id: 'work-item-2', name: 'Incident' },
        ],
      },
    },
  },
};