summaryrefslogtreecommitdiff
path: root/spec/frontend/sidebar/components/incidents/mock_data.js
blob: 2a5b77981100e463c6656f79d6fa9d0a53eee17e (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
import { STATUS_TRIGGERED, STATUS_ACKNOWLEDGED } from '~/sidebar/constants';

export const fetchData = {
  workspace: {
    __typename: 'Project',
    id: 'gid://gitlab/Project/2',
    issuable: {
      __typename: 'Issue',
      id: 'gid://gitlab/Issue/4',
      escalationStatus: STATUS_TRIGGERED,
    },
  },
};

export const mutationData = {
  issueSetEscalationStatus: {
    __typename: 'IssueSetEscalationStatusPayload',
    errors: [],
    clientMutationId: null,
    issue: {
      __typename: 'Issue',
      id: 'gid://gitlab/Issue/4',
      escalationStatus: STATUS_ACKNOWLEDGED,
    },
  },
};

export const fetchError = {
  workspace: {
    __typename: 'Project',
  },
};

export const mutationError = {
  issueSetEscalationStatus: {
    __typename: 'IssueSetEscalationStatusPayload',
    errors: ['hello'],
  },
};