summaryrefslogtreecommitdiff
path: root/spec/frontend/issues_list/issuable_list_test_data.js
blob: 313aa15bd31069c1124b0012012b22f4c3fe94ab (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
export const simpleIssue = {
  id: 442,
  iid: 31,
  title: 'Dismiss Cipher with no integrity',
  state: 'opened',
  created_at: '2019-08-26T19:06:32.667Z',
  updated_at: '2019-08-28T19:53:58.314Z',
  labels: [],
  milestone: null,
  assignees: [],
  author: {
    id: 3,
    name: 'Elnora Bernhard',
    username: 'treva.lesch',
    state: 'active',
    avatar_url: 'https://www.gravatar.com/avatar/a8c0d9c2882406cf2a9b71494625a796?s=80&d=identicon',
    web_url: 'http://localhost:3001/treva.lesch',
  },
  assignee: null,
  user_notes_count: 0,
  blocking_issues_count: 0,
  merge_requests_count: 0,
  upvotes: 0,
  downvotes: 0,
  due_date: null,
  confidential: false,
  web_url: 'http://localhost:3001/h5bp/html5-boilerplate/issues/31',
  has_tasks: false,
  weight: null,
  references: {
    relative: 'html-boilerplate#45',
  },
  health_status: 'on_track',
};

export const testLabels = [
  {
    id: 1,
    name: 'Tanuki',
    description: 'A cute animal',
    color: '#ff0000',
    text_color: '#ffffff',
  },
  {
    id: 2,
    name: 'Octocat',
    description: 'A grotesque mish-mash of whiskers and tentacles',
    color: '#333333',
    text_color: '#000000',
  },
  {
    id: 3,
    name: 'scoped::label',
    description: 'A scoped label',
    color: '#00ff00',
    text_color: '#ffffff',
  },
];

export const testAssignees = [
  {
    id: 1,
    name: 'Administrator',
    username: 'root',
    state: 'active',
    avatar_url: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon',
    web_url: 'http://localhost:3001/root',
  },
  {
    id: 22,
    name: 'User 0',
    username: 'user0',
    state: 'active',
    avatar_url: 'https://www.gravatar.com/avatar/52e4ce24a915fb7e51e1ad3b57f4b00a?s=80&d=identicon',
    web_url: 'http://localhost:3001/user0',
  },
];