debian-mirror-gitlab/spec/frontend/sidebar/components/incidents/mock_data.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
828 B
JavaScript
Raw Normal View History

2023-03-04 22:38:38 +05:30
import { STATUS_TRIGGERED, STATUS_ACKNOWLEDGED } from '~/sidebar/constants';
2022-05-07 20:08:51 +05:30
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'],
},
};