summaryrefslogtreecommitdiff
path: root/spec/frontend/search/mock_data.js
blob: d076997b04a3c94817c5f2ac9d2ea4e2fcb274c9 (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
export const MOCK_QUERY = {
  scope: 'issues',
  state: 'all',
  confidential: null,
  group_id: 'test_1',
};

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

export const MOCK_GROUPS = [
  {
    name: 'test group',
    full_name: 'full name test group',
    id: 'test_1',
  },
  {
    name: 'test group 2',
    full_name: 'full name test group 2',
    id: 'test_2',
  },
];

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

export const MOCK_PROJECTS = [
  {
    name: 'test project',
    namespace: MOCK_GROUP,
    name_with_namespace: 'test group test project',
    id: 'test_1',
  },
  {
    name: 'test project 2',
    namespace: MOCK_GROUP,
    name_with_namespace: 'test group test project 2',
    id: 'test_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',
    },
  },
];