summaryrefslogtreecommitdiff
path: root/spec/frontend/gfm_auto_complete/mock_data.js
blob: 9c5a9d7ef3da04b31cfe2a3e94df48ee5fdf9fbb (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
export const eventlistenersMockDefaultMap = [
  {
    key: 'shown',
    namespace: 'atwho',
  },
  {
    key: 'shown-users',
    namespace: 'atwho',
  },
  {
    key: 'shown-issues',
    namespace: 'atwho',
  },
  {
    key: 'shown-milestones',
    namespace: 'atwho',
  },
  {
    key: 'shown-mergerequests',
    namespace: 'atwho',
  },
  {
    key: 'shown-labels',
    namespace: 'atwho',
  },
  {
    key: 'shown-snippets',
    namespace: 'atwho',
  },
  {
    key: 'shown-contacts',
    namespace: 'atwho',
  },
];

export const crmContactsMock = [
  {
    id: 1,
    email: 'contact.1@email.com',
    firstName: 'Contact',
    lastName: 'One',
    search: 'contact.1@email.com',
    state: 'active',
    set: false,
  },
  {
    id: 2,
    email: 'contact.2@email.com',
    firstName: 'Contact',
    lastName: 'Two',
    search: 'contact.2@email.com',
    state: 'active',
    set: false,
  },
  {
    id: 3,
    email: 'contact.3@email.com',
    firstName: 'Contact',
    lastName: 'Three',
    search: 'contact.3@email.com',
    state: 'inactive',
    set: false,
  },
  {
    id: 4,
    email: 'contact.4@email.com',
    firstName: 'Contact',
    lastName: 'Four',
    search: 'contact.4@email.com',
    state: 'inactive',
    set: true,
  },
  {
    id: 5,
    email: 'contact.5@email.com',
    firstName: 'Contact',
    lastName: 'Five',
    search: 'contact.5@email.com',
    state: 'active',
    set: true,
  },
  {
    id: 5,
    email: 'contact.6@email.com',
    firstName: 'Contact',
    lastName: 'Six',
    search: 'contact.6@email.com',
    state: 'active',
    set: undefined, // On purpose
  },
];