|
| 1 | +import { fromJS } from 'immutable'; |
| 2 | + |
| 3 | +export const mockedEnterpriseAccounts = fromJS([ |
| 4 | + { |
| 5 | + hostname: 'github.gitify.io', |
| 6 | + token: '1234568790', |
| 7 | + }, |
| 8 | +]); |
| 9 | + |
| 10 | +// 2 Notifications |
| 11 | +// Repository : 'manosim/notifications-tests' |
| 12 | +export const mockedGithubNotifications = fromJS([ |
| 13 | + { |
| 14 | + 'id': '138661096', |
| 15 | + 'unread': true, |
| 16 | + 'reason': 'subscribed', |
| 17 | + 'updated_at': '2017-05-20T17:51:57Z', |
| 18 | + 'last_read_at': '2017-05-20T17:06:51Z', |
| 19 | + 'subject': { |
| 20 | + 'title': 'I am a robot and this is a test!', |
| 21 | + 'url': 'https://api.github.com/repos/manosim/notifications-test/issues/1', |
| 22 | + 'latest_comment_url': 'https://api.github.com/repos/manosim/notifications-test/issues/comments/302888448', |
| 23 | + 'type': 'Issue' |
| 24 | + }, |
| 25 | + 'repository': { |
| 26 | + 'id': 57216596, |
| 27 | + 'name': 'notifications-test', |
| 28 | + 'full_name': 'manosim/notifications-test', |
| 29 | + 'owner': { |
| 30 | + 'login': 'manosim', |
| 31 | + 'id': 6333409, |
| 32 | + 'avatar_url': 'https://avatars0.githubusercontent.com/u/6333409?v=3', |
| 33 | + 'gravatar_id': '', |
| 34 | + 'url': 'https://api.github.com/users/manosim', |
| 35 | + 'html_url': 'https://github.com/manosim', |
| 36 | + 'followers_url': 'https://api.github.com/users/manosim/followers', |
| 37 | + 'following_url': 'https://api.github.com/users/manosim/following{/other_user}', |
| 38 | + 'gists_url': 'https://api.github.com/users/manosim/gists{/gist_id}', |
| 39 | + 'starred_url': 'https://api.github.com/users/manosim/starred{/owner}{/repo}', |
| 40 | + 'subscriptions_url': 'https://api.github.com/users/manosim/subscriptions', |
| 41 | + 'organizations_url': 'https://api.github.com/users/manosim/orgs', |
| 42 | + 'repos_url': 'https://api.github.com/users/manosim/repos', |
| 43 | + 'events_url': 'https://api.github.com/users/manosim/events{/privacy}', |
| 44 | + 'received_events_url': 'https://api.github.com/users/manosim/received_events', |
| 45 | + 'type': 'User', |
| 46 | + 'site_admin': false |
| 47 | + }, |
| 48 | + 'private': true, |
| 49 | + 'html_url': 'https://github.com/manosim/notifications-test', |
| 50 | + 'description': null, |
| 51 | + 'fork': false, |
| 52 | + // Removed the rest of the properties |
| 53 | + }, |
| 54 | + 'url': 'https://api.github.com/notifications/threads/138661096', |
| 55 | + 'subscription_url': 'https://api.github.com/notifications/threads/138661096/subscription' |
| 56 | + }, |
| 57 | + { |
| 58 | + 'id': '148827438', |
| 59 | + 'unread': true, |
| 60 | + 'reason': 'author', |
| 61 | + 'updated_at': '2017-05-20T17:06:34Z', |
| 62 | + 'last_read_at': '2017-05-20T16:59:03Z', |
| 63 | + 'subject': { |
| 64 | + 'title': 'Improve the UI', |
| 65 | + 'url': 'https://api.github.com/repos/manosim/notifications-test/issues/4', |
| 66 | + 'latest_comment_url': 'https://api.github.com/repos/manosim/notifications-test/issues/comments/302885965', |
| 67 | + 'type': 'Issue' |
| 68 | + }, |
| 69 | + 'repository': { |
| 70 | + 'id': 57216596, |
| 71 | + 'name': 'notifications-test', |
| 72 | + 'full_name': 'manosim/notifications-test', |
| 73 | + 'owner': { |
| 74 | + 'login': 'manosim', |
| 75 | + 'id': 6333409, |
| 76 | + 'avatar_url': 'https://avatars0.githubusercontent.com/u/6333409?v=3', |
| 77 | + 'gravatar_id': '', |
| 78 | + 'url': 'https://api.github.com/users/manosim', |
| 79 | + 'html_url': 'https://github.com/manosim', |
| 80 | + 'followers_url': 'https://api.github.com/users/manosim/followers', |
| 81 | + 'following_url': 'https://api.github.com/users/manosim/following{/other_user}', |
| 82 | + 'gists_url': 'https://api.github.com/users/manosim/gists{/gist_id}', |
| 83 | + 'starred_url': 'https://api.github.com/users/manosim/starred{/owner}{/repo}', |
| 84 | + 'subscriptions_url': 'https://api.github.com/users/manosim/subscriptions', |
| 85 | + 'organizations_url': 'https://api.github.com/users/manosim/orgs', |
| 86 | + 'repos_url': 'https://api.github.com/users/manosim/repos', |
| 87 | + 'events_url': 'https://api.github.com/users/manosim/events{/privacy}', |
| 88 | + 'received_events_url': 'https://api.github.com/users/manosim/received_events', |
| 89 | + 'type': 'User', |
| 90 | + 'site_admin': false |
| 91 | + }, |
| 92 | + 'private': true, |
| 93 | + 'html_url': 'https://github.com/manosim/notifications-test', |
| 94 | + 'description': null, |
| 95 | + 'fork': false, |
| 96 | + // Removed the rest of the properties |
| 97 | + }, |
| 98 | + 'url': 'https://api.github.com/notifications/threads/148827438', |
| 99 | + 'subscription_url': 'https://api.github.com/notifications/threads/148827438/subscription' |
| 100 | + } |
| 101 | +]); |
| 102 | + |
| 103 | + |
| 104 | +// 2 Notifications |
| 105 | +// Repository : 'myorg/notifications-test' |
| 106 | +export const mockedEnterpriseNotifications = fromJS([ |
| 107 | + { |
| 108 | + 'id': '4', |
| 109 | + 'unread': true, |
| 110 | + 'reason': 'subscribed', |
| 111 | + 'updated_at': '2017-05-20T13:02:48Z', |
| 112 | + 'last_read_at': null, |
| 113 | + 'subject': { |
| 114 | + 'title': 'Release 0.0.1', |
| 115 | + 'url': 'https://github.gitify.io/api/v3/repos/myorg/notifications-test/releases/1', |
| 116 | + 'latest_comment_url': 'https://github.gitify.io/api/v3/repos/myorg/notifications-test/releases/1', |
| 117 | + 'type': 'Release' |
| 118 | + }, |
| 119 | + 'repository': { |
| 120 | + 'id': 1, |
| 121 | + 'name': 'notifications-test', |
| 122 | + 'full_name': 'myorg/notifications-test', |
| 123 | + 'owner': { |
| 124 | + 'login': 'myorg', |
| 125 | + 'id': 4, |
| 126 | + 'avatar_url': 'https://github.gitify.io/avatars/u/4?', |
| 127 | + 'gravatar_id': '', |
| 128 | + 'url': 'https://github.gitify.io/api/v3/users/myorg', |
| 129 | + 'html_url': 'https://github.gitify.io/myorg', |
| 130 | + 'followers_url': 'https://github.gitify.io/api/v3/users/myorg/followers', |
| 131 | + 'following_url': 'https://github.gitify.io/api/v3/users/myorg/following{/other_user}', |
| 132 | + 'gists_url': 'https://github.gitify.io/api/v3/users/myorg/gists{/gist_id}', |
| 133 | + 'starred_url': 'https://github.gitify.io/api/v3/users/myorg/starred{/owner}{/repo}', |
| 134 | + 'subscriptions_url': 'https://github.gitify.io/api/v3/users/myorg/subscriptions', |
| 135 | + 'organizations_url': 'https://github.gitify.io/api/v3/users/myorg/orgs', |
| 136 | + 'repos_url': 'https://github.gitify.io/api/v3/users/myorg/repos', |
| 137 | + 'events_url': 'https://github.gitify.io/api/v3/users/myorg/events{/privacy}', |
| 138 | + 'received_events_url': 'https://github.gitify.io/api/v3/users/myorg/received_events', |
| 139 | + 'type': 'Organization', |
| 140 | + 'site_admin': false |
| 141 | + }, |
| 142 | + 'private': true, |
| 143 | + 'html_url': 'https://github.gitify.io/myorg/notifications-test', |
| 144 | + 'description': null, |
| 145 | + 'fork': false, |
| 146 | + // Removed the rest of the properties |
| 147 | + }, |
| 148 | + 'url': 'https://github.gitify.io/api/v3/notifications/threads/4', |
| 149 | + 'subscription_url': 'https://github.gitify.io/api/v3/notifications/threads/4/subscription' |
| 150 | + }, |
| 151 | + { |
| 152 | + 'id': '3', |
| 153 | + 'unread': true, |
| 154 | + 'reason': 'subscribed', |
| 155 | + 'updated_at': '2017-05-20T15:52:20Z', |
| 156 | + 'last_read_at': '2017-05-20T14:20:55Z', |
| 157 | + 'subject': { |
| 158 | + 'title': 'Bump Version', |
| 159 | + 'url': 'https://github.gitify.io/api/v3/repos/myorg/notifications-test/pulls/3', |
| 160 | + 'latest_comment_url': 'https://github.gitify.io/api/v3/repos/myorg/notifications-test/issues/comments/21', |
| 161 | + 'type': 'PullRequest' |
| 162 | + }, |
| 163 | + 'repository': { |
| 164 | + 'id': 1, |
| 165 | + 'name': 'notifications-test', |
| 166 | + 'full_name': 'myorg/notifications-test', |
| 167 | + 'owner': { |
| 168 | + 'login': 'myorg', |
| 169 | + 'id': 4, |
| 170 | + 'avatar_url': 'https://github.gitify.io/avatars/u/4?', |
| 171 | + 'gravatar_id': '', |
| 172 | + 'url': 'https://github.gitify.io/api/v3/users/myorg', |
| 173 | + 'html_url': 'https://github.gitify.io/myorg', |
| 174 | + 'followers_url': 'https://github.gitify.io/api/v3/users/myorg/followers', |
| 175 | + 'following_url': 'https://github.gitify.io/api/v3/users/myorg/following{/other_user}', |
| 176 | + 'gists_url': 'https://github.gitify.io/api/v3/users/myorg/gists{/gist_id}', |
| 177 | + 'starred_url': 'https://github.gitify.io/api/v3/users/myorg/starred{/owner}{/repo}', |
| 178 | + 'subscriptions_url': 'https://github.gitify.io/api/v3/users/myorg/subscriptions', |
| 179 | + 'organizations_url': 'https://github.gitify.io/api/v3/users/myorg/orgs', |
| 180 | + 'repos_url': 'https://github.gitify.io/api/v3/users/myorg/repos', |
| 181 | + 'events_url': 'https://github.gitify.io/api/v3/users/myorg/events{/privacy}', |
| 182 | + 'received_events_url': 'https://github.gitify.io/api/v3/users/myorg/received_events', |
| 183 | + 'type': 'Organization', |
| 184 | + 'site_admin': false |
| 185 | + }, |
| 186 | + 'private': true, |
| 187 | + 'html_url': 'https://github.gitify.io/myorg/notifications-test', |
| 188 | + 'description': null, |
| 189 | + 'fork': false, |
| 190 | + // Removed the rest of the properties |
| 191 | + }, |
| 192 | + 'url': 'https://github.gitify.io/api/v3/notifications/threads/3', |
| 193 | + 'subscription_url': 'https://github.gitify.io/api/v3/notifications/threads/3/subscription' |
| 194 | + } |
| 195 | +]); |
| 196 | + |
| 197 | +export const mockedNotificationsRecuderData = fromJS([ |
| 198 | + { |
| 199 | + hostname: 'github.com', |
| 200 | + notifications: mockedGithubNotifications, |
| 201 | + }, |
| 202 | + { |
| 203 | + hostname: 'github.gitify.io', |
| 204 | + notifications: mockedEnterpriseNotifications, |
| 205 | + }, |
| 206 | +]); |
0 commit comments