gitlab-org--gitlab-foss/spec/frontend/pipeline_schedules/mock_data.js

24 lines
728 B
JavaScript

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 { mockGetPipelineSchedulesGraphQLResponse };