Skip to content

Commit a65edaa

Browse files
author
Brendan Mulholland
committed
Update snapshots with new format
1 parent e33b136 commit a65edaa

9 files changed

+44
-44
lines changed

src/components/__snapshots__/AccountNotifications.test.tsx.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`components/AccountNotifications.tsx should render itself (github.com with notifications) 1`] = `
4-
Array [
4+
[
55
<div
66
className="flex flex-1 items-center justify-between py-2 px-4 bg-gray-300 dark:bg-gray-darkest dark:text-white text-sm"
77
>
@@ -14,7 +14,7 @@ Array [
1414
height={20}
1515
role="img"
1616
style={
17-
Object {
17+
{
1818
"display": "inline-block",
1919
"overflow": "visible",
2020
"userSelect": "none",
@@ -48,7 +48,7 @@ exports[`components/AccountNotifications.tsx should render itself (github.com wi
4848
height={20}
4949
role="img"
5050
style={
51-
Object {
51+
{
5252
"display": "inline-block",
5353
"overflow": "visible",
5454
"userSelect": "none",

src/components/__snapshots__/NotificationRow.test.tsx.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ exports[`components/Notification.js should render itself & its children 1`] = `
1616
height={18}
1717
role="img"
1818
style={
19-
Object {
19+
{
2020
"display": "inline-block",
2121
"overflow": "visible",
2222
"userSelect": "none",
@@ -69,7 +69,7 @@ exports[`components/Notification.js should render itself & its children 1`] = `
6969
height={13}
7070
role="img"
7171
style={
72-
Object {
72+
{
7373
"display": "inline-block",
7474
"overflow": "visible",
7575
"userSelect": "none",
@@ -103,7 +103,7 @@ exports[`components/Notification.js should render itself & its children 1`] = `
103103
height={20}
104104
role="img"
105105
style={
106-
Object {
106+
{
107107
"display": "inline-block",
108108
"overflow": "visible",
109109
"userSelect": "none",

src/components/__snapshots__/Repository.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`components/Repository.tsx should render itself & its children 1`] = `
4-
Array [
4+
[
55
<div
66
className="flex p-2 bg-gray-100 dark:bg-gray-darker dark:text-white"
77
>
@@ -34,7 +34,7 @@ Array [
3434
height={20}
3535
role="img"
3636
style={
37-
Object {
37+
{
3838
"display": "inline-block",
3939
"overflow": "visible",
4040
"userSelect": "none",

src/components/__snapshots__/Sidebar.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ exports[`components/Sidebar.tsx should render itself & its children (logged in)
6565
height={12}
6666
role="img"
6767
style={
68-
Object {
68+
{
6969
"display": "inline-block",
7070
"overflow": "visible",
7171
"userSelect": "none",
@@ -185,7 +185,7 @@ exports[`components/Sidebar.tsx should render itself & its children (logged out)
185185
height={12}
186186
role="img"
187187
style={
188-
Object {
188+
{
189189
"display": "inline-block",
190190
"overflow": "visible",
191191
"userSelect": "none",

src/routes/__snapshots__/LoginEnterprise.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exports[`routes/LoginEnterprise.js renders correctly 1`] = `
2020
height={20}
2121
role="img"
2222
style={
23-
Object {
23+
{
2424
"display": "inline-block",
2525
"overflow": "visible",
2626
"userSelect": "none",

src/routes/__snapshots__/LoginWithToken.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exports[`routes/LoginWithToken.js renders correctly 1`] = `
2020
height={20}
2121
role="img"
2222
style={
23-
Object {
23+
{
2424
"display": "inline-block",
2525
"overflow": "visible",
2626
"userSelect": "none",

src/routes/__snapshots__/Notifications.test.tsx.snap

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ exports[`routes/Notifications.ts should render itself & its children (with notif
1111
<AccountNotifications
1212
hostname="github.com"
1313
notifications={
14-
Array [
15-
Object {
14+
[
15+
{
1616
"id": "138661096",
1717
"last_read_at": "2017-05-20T17:06:51Z",
1818
"reason": "subscribed",
19-
"repository": Object {
19+
"repository": {
2020
"archive_url": "https://api.github.com/repos/manosim/notifications-test/{archive_format}{/ref}",
2121
"assignees_url": "https://api.github.com/repos/manosim/notifications-test/assignees{/user}",
2222
"blobs_url": "https://api.github.com/repos/manosim/notifications-test/git/blobs{/sha}",
@@ -51,7 +51,7 @@ exports[`routes/Notifications.ts should render itself & its children (with notif
5151
"name": "notifications-test",
5252
"node_id": "MDEwOlJlcG9zaXRvcnkzNjAyOTcwNg==",
5353
"notifications_url": "https://api.github.com/repos/manosim/notifications-test/notifications{?since,all,participating}",
54-
"owner": Object {
54+
"owner": {
5555
"avatar_url": "https://avatars0.githubusercontent.com/u/6333409?v=3",
5656
"events_url": "https://api.github.com/users/manosim/events{/privacy}",
5757
"followers_url": "https://api.github.com/users/manosim/followers",
@@ -83,7 +83,7 @@ exports[`routes/Notifications.ts should render itself & its children (with notif
8383
"trees_url": "https://api.github.com/repos/manosim/notifications-test/git/trees{/sha}",
8484
"url": "https://api.github.com/manosim/notifications-test",
8585
},
86-
"subject": Object {
86+
"subject": {
8787
"latest_comment_url": "https://api.github.com/repos/manosim/notifications-test/issues/comments/302888448",
8888
"state": "open",
8989
"title": "I am a robot and this is a test!",
@@ -95,18 +95,18 @@ exports[`routes/Notifications.ts should render itself & its children (with notif
9595
"updated_at": "2017-05-20T17:51:57Z",
9696
"url": "https://api.github.com/notifications/threads/138661096",
9797
},
98-
Object {
98+
{
9999
"id": "148827438",
100100
"last_read_at": "2017-05-20T16:59:03Z",
101101
"reason": "author",
102-
"repository": Object {
102+
"repository": {
103103
"description": null,
104104
"fork": false,
105105
"full_name": "manosim/notifications-test",
106106
"html_url": "https://github.com/manosim/notifications-test",
107107
"id": 57216596,
108108
"name": "notifications-test",
109-
"owner": Object {
109+
"owner": {
110110
"avatar_url": "https://avatars0.githubusercontent.com/u/6333409?v=3",
111111
"events_url": "https://api.github.com/users/manosim/events{/privacy}",
112112
"followers_url": "https://api.github.com/users/manosim/followers",
@@ -127,7 +127,7 @@ exports[`routes/Notifications.ts should render itself & its children (with notif
127127
},
128128
"private": true,
129129
},
130-
"subject": Object {
130+
"subject": {
131131
"latest_comment_url": "https://api.github.com/repos/manosim/notifications-test/issues/comments/302885965",
132132
"title": "Improve the UI",
133133
"type": "Issue",
@@ -145,19 +145,19 @@ exports[`routes/Notifications.ts should render itself & its children (with notif
145145
<AccountNotifications
146146
hostname="github.gitify.io"
147147
notifications={
148-
Array [
149-
Object {
148+
[
149+
{
150150
"id": "4",
151151
"last_read_at": null,
152152
"reason": "subscribed",
153-
"repository": Object {
153+
"repository": {
154154
"description": null,
155155
"fork": false,
156156
"full_name": "myorg/notifications-test",
157157
"html_url": "https://github.gitify.io/myorg/notifications-test",
158158
"id": 1,
159159
"name": "notifications-test",
160-
"owner": Object {
160+
"owner": {
161161
"avatar_url": "https://github.gitify.io/avatars/u/4?",
162162
"events_url": "https://github.gitify.io/api/v3/users/myorg/events{/privacy}",
163163
"followers_url": "https://github.gitify.io/api/v3/users/myorg/followers",
@@ -178,7 +178,7 @@ exports[`routes/Notifications.ts should render itself & its children (with notif
178178
},
179179
"private": true,
180180
},
181-
"subject": Object {
181+
"subject": {
182182
"latest_comment_url": "https://github.gitify.io/api/v3/repos/myorg/notifications-test/releases/1",
183183
"title": "Release 0.0.1",
184184
"type": "Release",
@@ -189,18 +189,18 @@ exports[`routes/Notifications.ts should render itself & its children (with notif
189189
"updated_at": "2017-05-20T13:02:48Z",
190190
"url": "https://github.gitify.io/api/v3/notifications/threads/4",
191191
},
192-
Object {
192+
{
193193
"id": "3",
194194
"last_read_at": "2017-05-20T14:20:55Z",
195195
"reason": "subscribed",
196-
"repository": Object {
196+
"repository": {
197197
"description": null,
198198
"fork": false,
199199
"full_name": "myorg/notifications-test",
200200
"html_url": "https://github.gitify.io/myorg/notifications-test",
201201
"id": 1,
202202
"name": "notifications-test",
203-
"owner": Object {
203+
"owner": {
204204
"avatar_url": "https://github.gitify.io/avatars/u/4?",
205205
"events_url": "https://github.gitify.io/api/v3/users/myorg/events{/privacy}",
206206
"followers_url": "https://github.gitify.io/api/v3/users/myorg/followers",
@@ -221,7 +221,7 @@ exports[`routes/Notifications.ts should render itself & its children (with notif
221221
},
222222
"private": true,
223223
},
224-
"subject": Object {
224+
"subject": {
225225
"latest_comment_url": "https://github.gitify.io/api/v3/repos/myorg/notifications-test/issues/comments/21",
226226
"title": "Bump Version",
227227
"type": "PullRequest",

src/routes/__snapshots__/Settings.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exports[`routes/Settings.tsx should render itself & its children 1`] = `
2020
height={20}
2121
role="img"
2222
style={
23-
Object {
23+
{
2424
"display": "inline-block",
2525
"overflow": "visible",
2626
"userSelect": "none",

src/utils/__snapshots__/github-api.test.ts.snap

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,91 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`./utils/github-api.ts should format the notification reason 1`] = `
4-
Object {
4+
{
55
"description": "You were assigned to the issue.",
66
"type": "Assign",
77
}
88
`;
99

1010
exports[`./utils/github-api.ts should format the notification reason 2`] = `
11-
Object {
11+
{
1212
"description": "You created the thread.",
1313
"type": "Author",
1414
}
1515
`;
1616

1717
exports[`./utils/github-api.ts should format the notification reason 3`] = `
18-
Object {
18+
{
1919
"description": "You commented on the thread.",
2020
"type": "Comment",
2121
}
2222
`;
2323

2424
exports[`./utils/github-api.ts should format the notification reason 4`] = `
25-
Object {
25+
{
2626
"description": "You accepted an invitation to contribute to the repository.",
2727
"type": "Invitation",
2828
}
2929
`;
3030

3131
exports[`./utils/github-api.ts should format the notification reason 5`] = `
32-
Object {
32+
{
3333
"description": "You subscribed to the thread (via an issue or pull request).",
3434
"type": "Manual",
3535
}
3636
`;
3737

3838
exports[`./utils/github-api.ts should format the notification reason 6`] = `
39-
Object {
39+
{
4040
"description": "You were specifically @mentioned in the content.",
4141
"type": "Mention",
4242
}
4343
`;
4444

4545
exports[`./utils/github-api.ts should format the notification reason 7`] = `
46-
Object {
46+
{
4747
"description": "You, or a team you're a member of, were requested to review a pull request.",
4848
"type": "Review Requested",
4949
}
5050
`;
5151

5252
exports[`./utils/github-api.ts should format the notification reason 8`] = `
53-
Object {
53+
{
5454
"description": "GitHub discovered a security vulnerability in your repository.",
5555
"type": "Security Alert",
5656
}
5757
`;
5858

5959
exports[`./utils/github-api.ts should format the notification reason 9`] = `
60-
Object {
60+
{
6161
"description": "You changed the thread state (for example, closing an issue or merging a pull request).",
6262
"type": "State Change",
6363
}
6464
`;
6565

6666
exports[`./utils/github-api.ts should format the notification reason 10`] = `
67-
Object {
67+
{
6868
"description": "You're watching the repository.",
6969
"type": "Subscribed",
7070
}
7171
`;
7272

7373
exports[`./utils/github-api.ts should format the notification reason 11`] = `
74-
Object {
74+
{
7575
"description": "You were on a team that was mentioned.",
7676
"type": "Team Mention",
7777
}
7878
`;
7979

8080
exports[`./utils/github-api.ts should format the notification reason 12`] = `
81-
Object {
81+
{
8282
"description": "A GitHub Actions workflow run was triggered for your repository",
8383
"type": "Workflow Run",
8484
}
8585
`;
8686

8787
exports[`./utils/github-api.ts should format the notification reason 13`] = `
88-
Object {
88+
{
8989
"description": "The reason for this notification is not supported by the app.",
9090
"type": "Unknown",
9191
}

0 commit comments

Comments
 (0)