summaryrefslogtreecommitdiff
path: root/spec/frontend/issues_list/issuable_list_test_data.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/issues_list/issuable_list_test_data.js')
-rw-r--r--spec/frontend/issues_list/issuable_list_test_data.js77
1 files changed, 77 insertions, 0 deletions
diff --git a/spec/frontend/issues_list/issuable_list_test_data.js b/spec/frontend/issues_list/issuable_list_test_data.js
new file mode 100644
index 00000000000..313aa15bd31
--- /dev/null
+++ b/spec/frontend/issues_list/issuable_list_test_data.js
@@ -0,0 +1,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',
+ },
+];