debian-mirror-gitlab/spec/frontend/pipelines/components/jobs/utils_spec.js

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

15 lines
403 B
JavaScript
Raw Normal View History

2022-07-16 23:28:13 +05:30
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,
);
});
});