39 lines
849 B
JavaScript
39 lines
849 B
JavaScript
import { STATUS_TRIGGERED, STATUS_ACKNOWLEDGED } from '~/sidebar/components/incidents/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'],
|
|
},
|
|
};
|