debian-mirror-gitlab/spec/frontend/pipeline_schedules/mock_data.js
2022-11-25 23:54:43 +05:30

35 lines
990 B
JavaScript

// Fixture located at spec/frontend/fixtures/pipeline_schedules.rb
import mockGetPipelineSchedulesGraphQLResponse from 'test_fixtures/graphql/pipeline_schedules/get_pipeline_schedules.query.graphql.json';
import mockGetPipelineSchedulesAsGuestGraphQLResponse from 'test_fixtures/graphql/pipeline_schedules/get_pipeline_schedules.query.graphql.as_guest.json';
const {
data: {
project: {
pipelineSchedules: { nodes },
},
},
} = mockGetPipelineSchedulesGraphQLResponse;
const {
data: {
project: {
pipelineSchedules: { nodes: guestNodes },
},
},
} = mockGetPipelineSchedulesAsGuestGraphQLResponse;
export const mockPipelineScheduleNodes = nodes;
export const mockPipelineScheduleAsGuestNodes = guestNodes;
export const deleteMutationResponse = {
data: {
pipelineScheduleDelete: {
clientMutationId: null,
errors: [],
__typename: 'PipelineScheduleDeletePayload',
},
},
};
export { mockGetPipelineSchedulesGraphQLResponse };