debian-mirror-gitlab/spec/frontend/pipelines/components/jobs/utils_spec.js
2022-07-16 19:58:13 +02:00

14 lines
403 B
JavaScript

import { prepareFailedJobs } from '~/pipelines/components/jobs/utils';
import {
mockFailedJobsData,
mockFailedJobsSummaryData,
mockPreparedFailedJobsData,
} from '../../mock_data';
describe('Utils', () => {
it('prepares failed jobs data correctly', () => {
expect(prepareFailedJobs(mockFailedJobsData, mockFailedJobsSummaryData)).toEqual(
mockPreparedFailedJobsData,
);
});
});