debian-mirror-gitlab/spec/frontend/ci_lint/mock_data.js

24 lines
400 B
JavaScript
Raw Normal View History

2021-02-22 17:27:13 +05:30
import { mockJobs } from 'jest/pipeline_editor/mock_data';
2021-01-29 00:20:46 +05:30
2022-08-13 15:12:31 +05:30
export const mockLintDataError = {
data: {
lintCI: {
errors: ['Error message'],
warnings: ['Warning message'],
valid: false,
jobs: mockJobs,
},
},
};
2021-01-29 00:20:46 +05:30
export const mockLintDataValid = {
data: {
lintCI: {
errors: [],
warnings: [],
valid: true,
jobs: mockJobs,
},
},
};