2020-10-30 14:08:56 -04:00
|
|
|
export const MOCK_QUERY = {
|
|
|
|
scope: 'issues',
|
|
|
|
state: 'all',
|
|
|
|
confidential: null,
|
2021-06-02 20:09:49 -04:00
|
|
|
group_id: 1,
|
2020-10-30 14:08:56 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
export const MOCK_GROUP = {
|
|
|
|
name: 'test group',
|
2021-06-02 20:09:49 -04:00
|
|
|
full_name: 'full name / test group',
|
|
|
|
id: 1,
|
2020-10-30 14:08:56 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
export const MOCK_GROUPS = [
|
|
|
|
{
|
2021-06-02 20:09:49 -04:00
|
|
|
avatar_url: null,
|
2020-10-30 14:08:56 -04:00
|
|
|
name: 'test group',
|
2021-06-02 20:09:49 -04:00
|
|
|
full_name: 'full name / test group',
|
|
|
|
id: 1,
|
2020-10-30 14:08:56 -04:00
|
|
|
},
|
|
|
|
{
|
2021-06-02 20:09:49 -04:00
|
|
|
avatar_url: 'https://avatar.com',
|
2020-10-30 14:08:56 -04:00
|
|
|
name: 'test group 2',
|
2021-06-02 20:09:49 -04:00
|
|
|
full_name: 'full name / test group 2',
|
|
|
|
id: 2,
|
2020-10-30 14:08:56 -04:00
|
|
|
},
|
|
|
|
];
|
2020-12-15 07:10:17 -05:00
|
|
|
|
|
|
|
export const MOCK_PROJECT = {
|
|
|
|
name: 'test project',
|
2021-01-20 19:11:07 -05:00
|
|
|
namespace: MOCK_GROUP,
|
2021-06-02 20:09:49 -04:00
|
|
|
nameWithNamespace: 'test group / test project',
|
|
|
|
id: 1,
|
2020-12-15 07:10:17 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
export const MOCK_PROJECTS = [
|
|
|
|
{
|
|
|
|
name: 'test project',
|
2021-01-20 19:11:07 -05:00
|
|
|
namespace: MOCK_GROUP,
|
2021-06-02 20:09:49 -04:00
|
|
|
name_with_namespace: 'test group / test project',
|
|
|
|
id: 1,
|
2020-12-15 07:10:17 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'test project 2',
|
2021-01-20 19:11:07 -05:00
|
|
|
namespace: MOCK_GROUP,
|
2021-06-02 20:09:49 -04:00
|
|
|
name_with_namespace: 'test group / test project 2',
|
|
|
|
id: 2,
|
2020-12-15 07:10:17 -05:00
|
|
|
},
|
|
|
|
];
|
2021-02-02 13:09:42 -05:00
|
|
|
|
|
|
|
export const MOCK_SORT_OPTIONS = [
|
|
|
|
{
|
|
|
|
title: 'Most relevant',
|
|
|
|
sortable: false,
|
|
|
|
sortParam: 'relevant',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Created date',
|
|
|
|
sortable: true,
|
|
|
|
sortParam: {
|
|
|
|
asc: 'created_asc',
|
|
|
|
desc: 'created_desc',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
];
|
2021-06-30 02:07:17 -04:00
|
|
|
|
|
|
|
export const MOCK_LS_KEY = 'mock-ls-key';
|