Skip to content

Commit 79e17e7

Browse files
committed
Update deps
1 parent cb71a3d commit 79e17e7

File tree

9 files changed

+1349
-1395
lines changed

9 files changed

+1349
-1395
lines changed

lib/articles/__tests__/__snapshots__/functional-test.js.snap

+72-72
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`articles DELETE /api/articles/:slug when the user is authenticated and the article is found and the user is not the article author should return a forbidden error 1`] = `
4-
Object {
5-
"body": Object {
6-
"errors": Object {
7-
"error": Object {
4+
{
5+
"body": {
6+
"errors": {
7+
"error": {
88
"data": null,
99
"isBoom": true,
1010
"isServer": false,
1111
"message": "Forbidden",
12-
"output": Object {
13-
"headers": Object {},
14-
"payload": Object {
12+
"output": {
13+
"headers": {},
14+
"payload": {
1515
"error": "Forbidden",
1616
"message": "Forbidden",
1717
"statusCode": 403,
@@ -27,24 +27,24 @@ Object {
2727
`;
2828

2929
exports[`articles DELETE /api/articles/:slug when the user is authenticated and the article is found and the user is the article author should delete the article 1`] = `
30-
Object {
31-
"body": Object {},
30+
{
31+
"body": {},
3232
"status": 200,
3333
}
3434
`;
3535

3636
exports[`articles DELETE /api/articles/:slug when the user is authenticated and the article is not found should return a not found error 1`] = `
37-
Object {
38-
"body": Object {
39-
"errors": Object {
40-
"error": Object {
37+
{
38+
"body": {
39+
"errors": {
40+
"error": {
4141
"data": null,
4242
"isBoom": true,
4343
"isServer": false,
4444
"message": "Not Found",
45-
"output": Object {
46-
"headers": Object {},
47-
"payload": Object {
45+
"output": {
46+
"headers": {},
47+
"payload": {
4848
"error": "Not Found",
4949
"message": "Not Found",
5050
"statusCode": 404,
@@ -60,17 +60,17 @@ Object {
6060
`;
6161

6262
exports[`articles DELETE /api/articles/:slug when the user is not authenticated should return an unauthorized error 1`] = `
63-
Object {
64-
"body": Object {
65-
"errors": Object {
66-
"error": Object {
63+
{
64+
"body": {
65+
"errors": {
66+
"error": {
6767
"data": null,
6868
"isBoom": true,
6969
"isServer": false,
7070
"message": "Unauthorized",
71-
"output": Object {
72-
"headers": Object {},
73-
"payload": Object {
71+
"output": {
72+
"headers": {},
73+
"payload": {
7474
"error": "Unauthorized",
7575
"message": "Unauthorized",
7676
"statusCode": 401,
@@ -86,17 +86,17 @@ Object {
8686
`;
8787

8888
exports[`articles GET /api/articles/:slug when the user is authenticated and the article is not found should return a not found error 1`] = `
89-
Object {
90-
"body": Object {
91-
"errors": Object {
92-
"error": Object {
89+
{
90+
"body": {
91+
"errors": {
92+
"error": {
9393
"data": null,
9494
"isBoom": true,
9595
"isServer": false,
9696
"message": "Not Found",
97-
"output": Object {
98-
"headers": Object {},
99-
"payload": Object {
97+
"output": {
98+
"headers": {},
99+
"payload": {
100100
"error": "Not Found",
101101
"message": "Not Found",
102102
"statusCode": 404,
@@ -112,17 +112,17 @@ Object {
112112
`;
113113

114114
exports[`articles GET /api/articles/:slug when the user is not authenticated and the article is not found should return a not found error 1`] = `
115-
Object {
116-
"body": Object {
117-
"errors": Object {
118-
"error": Object {
115+
{
116+
"body": {
117+
"errors": {
118+
"error": {
119119
"data": null,
120120
"isBoom": true,
121121
"isServer": false,
122122
"message": "Not Found",
123-
"output": Object {
124-
"headers": Object {},
125-
"payload": Object {
123+
"output": {
124+
"headers": {},
125+
"payload": {
126126
"error": "Not Found",
127127
"message": "Not Found",
128128
"statusCode": 404,
@@ -138,17 +138,17 @@ Object {
138138
`;
139139

140140
exports[`articles GET /api/articles/feed when the user is not authenticated should return an unauthorized error 1`] = `
141-
Object {
142-
"body": Object {
143-
"errors": Object {
144-
"error": Object {
141+
{
142+
"body": {
143+
"errors": {
144+
"error": {
145145
"data": null,
146146
"isBoom": true,
147147
"isServer": false,
148148
"message": "Unauthorized",
149-
"output": Object {
150-
"headers": Object {},
151-
"payload": Object {
149+
"output": {
150+
"headers": {},
151+
"payload": {
152152
"error": "Unauthorized",
153153
"message": "Unauthorized",
154154
"statusCode": 401,
@@ -164,17 +164,17 @@ Object {
164164
`;
165165

166166
exports[`articles POST /api/articles when the user is not authenticated should return an unauthorized error 1`] = `
167-
Object {
168-
"body": Object {
169-
"errors": Object {
170-
"error": Object {
167+
{
168+
"body": {
169+
"errors": {
170+
"error": {
171171
"data": null,
172172
"isBoom": true,
173173
"isServer": false,
174174
"message": "Unauthorized",
175-
"output": Object {
176-
"headers": Object {},
177-
"payload": Object {
175+
"output": {
176+
"headers": {},
177+
"payload": {
178178
"error": "Unauthorized",
179179
"message": "Unauthorized",
180180
"statusCode": 401,
@@ -190,17 +190,17 @@ Object {
190190
`;
191191

192192
exports[`articles PUT /api/articles/:slug when the user is authenticated and the article is found and the user is not the article author should return a forbidden error 1`] = `
193-
Object {
194-
"body": Object {
195-
"errors": Object {
196-
"error": Object {
193+
{
194+
"body": {
195+
"errors": {
196+
"error": {
197197
"data": null,
198198
"isBoom": true,
199199
"isServer": false,
200200
"message": "Forbidden",
201-
"output": Object {
202-
"headers": Object {},
203-
"payload": Object {
201+
"output": {
202+
"headers": {},
203+
"payload": {
204204
"error": "Forbidden",
205205
"message": "Forbidden",
206206
"statusCode": 403,
@@ -216,17 +216,17 @@ Object {
216216
`;
217217

218218
exports[`articles PUT /api/articles/:slug when the user is authenticated and the article is not found should return a not found error 1`] = `
219-
Object {
220-
"body": Object {
221-
"errors": Object {
222-
"error": Object {
219+
{
220+
"body": {
221+
"errors": {
222+
"error": {
223223
"data": null,
224224
"isBoom": true,
225225
"isServer": false,
226226
"message": "Not Found",
227-
"output": Object {
228-
"headers": Object {},
229-
"payload": Object {
227+
"output": {
228+
"headers": {},
229+
"payload": {
230230
"error": "Not Found",
231231
"message": "Not Found",
232232
"statusCode": 404,
@@ -242,17 +242,17 @@ Object {
242242
`;
243243

244244
exports[`articles PUT /api/articles/:slug when the user is not authenticated should return an unauthorized error 1`] = `
245-
Object {
246-
"body": Object {
247-
"errors": Object {
248-
"error": Object {
245+
{
246+
"body": {
247+
"errors": {
248+
"error": {
249249
"data": null,
250250
"isBoom": true,
251251
"isServer": false,
252252
"message": "Unauthorized",
253-
"output": Object {
254-
"headers": Object {},
255-
"payload": Object {
253+
"output": {
254+
"headers": {},
255+
"payload": {
256256
"error": "Unauthorized",
257257
"message": "Unauthorized",
258258
"statusCode": 401,

0 commit comments

Comments
 (0)