summaryrefslogtreecommitdiff
path: root/spec/frontend/search/mock_data.js
blob: fbe01f372b091796fa47c7b0399bb5e55bd4be77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
export const MOCK_QUERY = {
  scope: 'issues',
  state: 'all',
  confidential: null,
  group_id: 1,
};

export const MOCK_GROUP = {
  name: 'test group',
  full_name: 'full name / test group',
  id: 1,
};

export const MOCK_GROUPS = [
  {
    avatar_url: null,
    name: 'test group',
    full_name: 'full name / test group',
    id: 1,
  },
  {
    avatar_url: 'https://avatar.com',
    name: 'test group 2',
    full_name: 'full name / test group 2',
    id: 2,
  },
];

export const MOCK_PROJECT = {
  name: 'test project',
  namespace: MOCK_GROUP,
  nameWithNamespace: 'test group / test project',
  id: 1,
};

export const MOCK_PROJECTS = [
  {
    name: 'test project',
    namespace: MOCK_GROUP,
    name_with_namespace: 'test group / test project',
    id: 1,
  },
  {
    name: 'test project 2',
    namespace: MOCK_GROUP,
    name_with_namespace: 'test group / test project 2',
    id: 2,
  },
];

export const MOCK_SORT_OPTIONS = [
  {
    title: 'Most relevant',
    sortable: false,
    sortParam: 'relevant',
  },
  {
    title: 'Created date',
    sortable: true,
    sortParam: {
      asc: 'created_asc',
      desc: 'created_desc',
    },
  },
];