debian-mirror-gitlab/spec/frontend/ci_lint/mock_data.js
2022-08-13 15:12:31 +05:30

23 lines
400 B
JavaScript

import { mockJobs } from 'jest/pipeline_editor/mock_data';
export const mockLintDataError = {
data: {
lintCI: {
errors: ['Error message'],
warnings: ['Warning message'],
valid: false,
jobs: mockJobs,
},
},
};
export const mockLintDataValid = {
data: {
lintCI: {
errors: [],
warnings: [],
valid: true,
jobs: mockJobs,
},
},
};