debian-mirror-gitlab/spec/frontend/projects/compare/components/mock_data.js

38 lines
755 B
JavaScript
Raw Normal View History

2021-06-08 01:23:25 +05:30
const refsProjectPath = 'some/refs/path';
const paramsName = 'to';
const paramsBranch = 'main';
const defaultProject = {
name: 'some-to-name',
id: '1',
};
export const appDefaultProps = {
projectCompareIndexPath: 'some/path',
projectMergeRequestPath: '',
projects: [defaultProject],
paramsFrom: 'main',
paramsTo: 'target/branch',
createMrPath: '',
refsProjectPath,
defaultProject,
};
export const revisionCardDefaultProps = {
selectedProject: defaultProject,
paramsBranch,
revisionText: 'Source',
refsProjectPath,
paramsName,
};
export const repoDropdownDefaultProps = {
selectedProject: defaultProject,
paramsName,
};
export const revisionDropdownDefaultProps = {
refsProjectPath,
paramsBranch,
paramsName,
};