blob: e0e90c0979144253403a5cb33225c8e988dd9176 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import approvedByCurrentUser from 'test_fixtures/graphql/merge_requests/approvals/approvals.query.graphql.json';
export const createCanApproveResponse = () => {
const response = JSON.parse(JSON.stringify(approvedByCurrentUser));
response.data.project.mergeRequest.userPermissions.canApprove = true;
response.data.project.mergeRequest.approved = false;
response.data.project.mergeRequest.approvedBy.nodes = [];
return response;
};
|