@@ -4,6 +4,148 @@ exports[`routes/Notifications.tsx should render itself & its children (all read
4
4
5
5
exports [` routes/Notifications.tsx should render itself & its children (error page - oops) 1` ] = ` <Oops />` ;
6
6
7
+ exports [` routes/Notifications.tsx should render itself & its children (show account hostname) 1` ] = `
8
+ <div
9
+ className = " flex flex-col flex-1 bg-white dark:bg-gray-dark"
10
+ >
11
+ <AccountNotifications
12
+ hostname = " github.com"
13
+ notifications = {
14
+ [
15
+ {
16
+ " hostname" : " github.com" ,
17
+ " id" : " 138661096" ,
18
+ " last_read_at" : " 2017-05-20T17:06:51Z" ,
19
+ " reason" : " subscribed" ,
20
+ " repository" : {
21
+ " archive_url" : " https://api.github.com/repos/manosim/notifications-test/{archive_format}{/ref}" ,
22
+ " assignees_url" : " https://api.github.com/repos/manosim/notifications-test/assignees{/user}" ,
23
+ " blobs_url" : " https://api.github.com/repos/manosim/notifications-test/git/blobs{/sha}" ,
24
+ " branches_url" : " https://api.github.com/repos/manosim/notifications-test/branches{/branch}" ,
25
+ " collaborators_url" : " https://api.github.com/repos/manosim/notifications-test/collaborators{/collaborator}" ,
26
+ " comments_url" : " https://api.github.com/repos/manosim/notifications-test/comments{/number}" ,
27
+ " commits_url" : " https://api.github.com/repos/manosim/notifications-test/commits{/sha}" ,
28
+ " compare_url" : " https://api.github.com/repos/manosim/notifications-test/compare/{base}...{head}" ,
29
+ " contents_url" : " https://api.github.com/repos/manosim/notifications-test/contents/{+path}" ,
30
+ " contributors_url" : " https://api.github.com/repos/manosim/notifications-test/contributors" ,
31
+ " deployments_url" : " https://api.github.com/repos/manosim/notifications-test/deployments" ,
32
+ " description" : " Test Repository" ,
33
+ " downloads_url" : " https://api.github.com/repos/manosim/notifications-test/downloads" ,
34
+ " events_url" : " https://api.github.com/repos/manosim/notifications-test/events" ,
35
+ " fork" : false ,
36
+ " forks_url" : " https://api.github.com/repos/manosim/notifications-test/forks" ,
37
+ " full_name" : " manosim/notifications-test" ,
38
+ " git_commits_url" : " https://api.github.com/repos/manosim/notifications-test/git/commits{/sha}" ,
39
+ " git_refs_url" : " https://api.github.com/repos/manosim/notifications-test/git/refs{/sha}" ,
40
+ " git_tags_url" : " https://api.github.com/repos/manosim/notifications-test/git/tags{/sha}" ,
41
+ " hooks_url" : " https://api.github.com/repos/manosim/notifications-test/hooks" ,
42
+ " html_url" : " https://github.com/manosim/notifications-test" ,
43
+ " id" : 57216596 ,
44
+ " issue_comment_url" : " https://api.github.com/repos/manosim/notifications-test/issues/comments{/number}" ,
45
+ " issue_events_url" : " https://api.github.com/repos/manosim/notifications-test/issues/events{/number}" ,
46
+ " issues_url" : " https://api.github.com/repos/manosim/notifications-test/issues{/number}" ,
47
+ " keys_url" : " https://api.github.com/repos/manosim/notifications-test/keys{/key_id}" ,
48
+ " labels_url" : " https://api.github.com/repos/manosim/notifications-test/labels{/name}" ,
49
+ " languages_url" : " https://api.github.com/repos/manosim/notifications-test/languages" ,
50
+ " merges_url" : " https://api.github.com/repos/manosim/notifications-test/merges" ,
51
+ " milestones_url" : " https://api.github.com/repos/manosim/notifications-test/milestones{/number}" ,
52
+ " name" : " notifications-test" ,
53
+ " node_id" : " MDEwOlJlcG9zaXRvcnkzNjAyOTcwNg==" ,
54
+ " notifications_url" : " https://api.github.com/repos/manosim/notifications-test/notifications{?since,all,participating}" ,
55
+ " owner" : {
56
+ " avatar_url" : " https://avatars0.githubusercontent.com/u/6333409?v=3" ,
57
+ " events_url" : " https://api.github.com/users/manosim/events{/privacy}" ,
58
+ " followers_url" : " https://api.github.com/users/manosim/followers" ,
59
+ " following_url" : " https://api.github.com/users/manosim/following{/other_user}" ,
60
+ " gists_url" : " https://api.github.com/users/manosim/gists{/gist_id}" ,
61
+ " gravatar_id" : " " ,
62
+ " html_url" : " https://github.com/manosim" ,
63
+ " id" : 6333409 ,
64
+ " login" : " manosim" ,
65
+ " node_id" : " MDQ6VXNlcjYzMzM0MDk=" ,
66
+ " organizations_url" : " https://api.github.com/users/manosim/orgs" ,
67
+ " received_events_url" : " https://api.github.com/users/manosim/received_events" ,
68
+ " repos_url" : " https://api.github.com/users/manosim/repos" ,
69
+ " site_admin" : false ,
70
+ " starred_url" : " https://api.github.com/users/manosim/starred{/owner}{/repo}" ,
71
+ " subscriptions_url" : " https://api.github.com/users/manosim/subscriptions" ,
72
+ " type" : " User" ,
73
+ " url" : " https://api.github.com/users/manosim" ,
74
+ },
75
+ " private" : true ,
76
+ " pulls_url" : " https://api.github.com/repos/manosim/notifications-test/pulls{/number}" ,
77
+ " releases_url" : " https://api.github.com/repos/manosim/notifications-test/releases{/id}" ,
78
+ " stargazers_url" : " https://api.github.com/repos/manosim/notifications-test/stargazers" ,
79
+ " statuses_url" : " https://api.github.com/repos/manosim/notifications-test/statuses/{sha}" ,
80
+ " subscribers_url" : " https://api.github.com/repos/manosim/notifications-test/subscribers" ,
81
+ " subscription_url" : " https://api.github.com/repos/manosim/notifications-test/subscription" ,
82
+ " tags_url" : " https://api.github.com/repos/manosim/notifications-test/tags" ,
83
+ " teams_url" : " https://api.github.com/repos/manosim/notifications-test/teams" ,
84
+ " trees_url" : " https://api.github.com/repos/manosim/notifications-test/git/trees{/sha}" ,
85
+ " url" : " https://api.github.com/manosim/notifications-test" ,
86
+ },
87
+ " subject" : {
88
+ " latest_comment_url" : " https://api.github.com/repos/manosim/notifications-test/issues/comments/302888448" ,
89
+ " state" : " open" ,
90
+ " title" : " I am a robot and this is a test!" ,
91
+ " type" : " Issue" ,
92
+ " url" : " https://api.github.com/repos/manosim/notifications-test/issues/1" ,
93
+ },
94
+ " subscription_url" : " https://api.github.com/notifications/threads/138661096/subscription" ,
95
+ " unread" : true ,
96
+ " updated_at" : " 2017-05-20T17:51:57Z" ,
97
+ " url" : " https://api.github.com/notifications/threads/138661096" ,
98
+ },
99
+ {
100
+ " id" : " 148827438" ,
101
+ " last_read_at" : " 2017-05-20T16:59:03Z" ,
102
+ " reason" : " author" ,
103
+ " repository" : {
104
+ " description" : null ,
105
+ " fork" : false ,
106
+ " full_name" : " manosim/notifications-test" ,
107
+ " html_url" : " https://github.com/manosim/notifications-test" ,
108
+ " id" : 57216596 ,
109
+ " name" : " notifications-test" ,
110
+ " owner" : {
111
+ " avatar_url" : " https://avatars0.githubusercontent.com/u/6333409?v=3" ,
112
+ " events_url" : " https://api.github.com/users/manosim/events{/privacy}" ,
113
+ " followers_url" : " https://api.github.com/users/manosim/followers" ,
114
+ " following_url" : " https://api.github.com/users/manosim/following{/other_user}" ,
115
+ " gists_url" : " https://api.github.com/users/manosim/gists{/gist_id}" ,
116
+ " gravatar_id" : " " ,
117
+ " html_url" : " https://github.com/manosim" ,
118
+ " id" : 6333409 ,
119
+ " login" : " manosim" ,
120
+ " organizations_url" : " https://api.github.com/users/manosim/orgs" ,
121
+ " received_events_url" : " https://api.github.com/users/manosim/received_events" ,
122
+ " repos_url" : " https://api.github.com/users/manosim/repos" ,
123
+ " site_admin" : false ,
124
+ " starred_url" : " https://api.github.com/users/manosim/starred{/owner}{/repo}" ,
125
+ " subscriptions_url" : " https://api.github.com/users/manosim/subscriptions" ,
126
+ " type" : " User" ,
127
+ " url" : " https://api.github.com/users/manosim" ,
128
+ },
129
+ " private" : true ,
130
+ },
131
+ " subject" : {
132
+ " latest_comment_url" : " https://api.github.com/repos/manosim/notifications-test/issues/comments/302885965" ,
133
+ " title" : " Improve the UI" ,
134
+ " type" : " Issue" ,
135
+ " url" : " https://api.github.com/repos/manosim/notifications-test/issues/4" ,
136
+ },
137
+ " subscription_url" : " https://api.github.com/notifications/threads/148827438/subscription" ,
138
+ " unread" : true ,
139
+ " updated_at" : " 2017-05-20T17:06:34Z" ,
140
+ " url" : " https://api.github.com/notifications/threads/148827438" ,
141
+ },
142
+ ]
143
+ }
144
+ showAccountHostname = { true }
145
+ />
146
+ </div >
147
+ ` ;
148
+
7
149
exports [` routes/Notifications.tsx should render itself & its children (with notifications) 1` ] = `
8
150
<div
9
151
className = " flex flex-col flex-1 bg-white dark:bg-gray-dark"
0 commit comments