Skip to content

Commit 86d4b64

Browse files
committed
test: Update snapshots after jest update
1 parent f1b1d71 commit 86d4b64

File tree

6 files changed

+50
-92
lines changed

6 files changed

+50
-92
lines changed

src/__tests__/__snapshots__/api.tests.ts.snap

Lines changed: 45 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

3-
exports[`
4-
feed(url: "https://non--------existing-domain.com") { title }
5-
1`] = `
3+
exports[`\\n feed(url: "https://non--------existing-domain.com") { title }\\n 1`] = `
64
{
75
"data": {
86
"feed": null,
@@ -29,9 +27,7 @@ exports[`
2927
}
3028
`;
3129

32-
exports[`
33-
feed(url: "https://rolflekang.com/feed.json", parser: JSON_FEED_V1) { title }
34-
1`] = `
30+
exports[`\\n feed(url: "https://rolflekang.com/feed.json", parser: JSON_FEED_V1) { title }\\n 1`] = `
3531
{
3632
"data": {
3733
"feed": {
@@ -41,17 +37,37 @@ exports[`
4137
}
4238
`;
4339

44-
exports[`
45-
feed(url: "https://rolflekang.com/feed.xml") {
46-
title
47-
feed_url
48-
items {
49-
title
50-
url
51-
date_published
52-
}
53-
}
54-
1`] = `
40+
exports[`\\n feed(url: "https://rolflekang.com/feed.xml") { title }\\n 1`] = `
41+
{
42+
"data": {
43+
"feed": {
44+
"title": "Writing by Rolf Erik Lekang",
45+
},
46+
},
47+
}
48+
`;
49+
50+
exports[`\\n feed(url: "https://rolflekang.com/feed.xml") { title, badField }\\n 1`] = `
51+
{
52+
"errors": [
53+
{
54+
"extensions": {
55+
"code": "GRAPHQL_VALIDATION_FAILED",
56+
"type": "GraphQLError",
57+
},
58+
"locations": [
59+
{
60+
"column": 57,
61+
"line": 2,
62+
},
63+
],
64+
"message": "Cannot query field "badField" on type "Feed".",
65+
},
66+
],
67+
}
68+
`;
69+
70+
exports[`\\n feed(url: "https://rolflekang.com/feed.xml") {\\n title\\n feed_url\\n items {\\n title\\n url\\n date_published\\n }\\n }\\n 1`] = `
5571
{
5672
"data": {
5773
"feed": {
@@ -199,43 +215,7 @@ exports[`
199215
}
200216
`;
201217

202-
exports[`
203-
feed(url: "https://rolflekang.com/feed.xml") { title }
204-
1`] = `
205-
{
206-
"data": {
207-
"feed": {
208-
"title": "Writing by Rolf Erik Lekang",
209-
},
210-
},
211-
}
212-
`;
213-
214-
exports[`
215-
feed(url: "https://rolflekang.com/feed.xml") { title, badField }
216-
1`] = `
217-
{
218-
"errors": [
219-
{
220-
"extensions": {
221-
"code": "GRAPHQL_VALIDATION_FAILED",
222-
"type": "GraphQLError",
223-
},
224-
"locations": [
225-
{
226-
"column": 57,
227-
"line": 2,
228-
},
229-
],
230-
"message": "Cannot query field "badField" on type "Feed".",
231-
},
232-
],
233-
}
234-
`;
235-
236-
exports[`
237-
feed(url: "https://rolflekang.com/feed.xml", parser: FEEDME) { title }
238-
1`] = `
218+
exports[`\\n feed(url: "https://rolflekang.com/feed.xml", parser: FEEDME) { title }\\n 1`] = `
239219
{
240220
"data": {
241221
"feed": {
@@ -245,9 +225,7 @@ exports[`
245225
}
246226
`;
247227

248-
exports[`
249-
feed(url: "https://rolflekang.com/feed.xml", parser: FEEDPARSER) { title }
250-
1`] = `
228+
exports[`\\n feed(url: "https://rolflekang.com/feed.xml", parser: FEEDPARSER) { title }\\n 1`] = `
251229
{
252230
"data": {
253231
"feed": {
@@ -257,9 +235,7 @@ exports[`
257235
}
258236
`;
259237

260-
exports[`
261-
feed(url: "https://rolflekang.com/feed.xml", parser: RSS_PARSER) { title }
262-
1`] = `
238+
exports[`\\n feed(url: "https://rolflekang.com/feed.xml", parser: RSS_PARSER) { title }\\n 1`] = `
263239
{
264240
"data": {
265241
"feed": {
@@ -269,9 +245,7 @@ exports[`
269245
}
270246
`;
271247

272-
exports[`
273-
feed(url: "https://rolflekang.com/feed.xml", parser: RSS_TO_JSON) { title }
274-
1`] = `
248+
exports[`\\n feed(url: "https://rolflekang.com/feed.xml", parser: RSS_TO_JSON) { title }\\n 1`] = `
275249
{
276250
"data": {
277251
"feed": {
@@ -281,11 +255,7 @@ exports[`
281255
}
282256
`;
283257

284-
exports[`
285-
feed(url: "https://rolflekang.com/feed.xml", startTime: "2020-01-01", endTime: "2020-10-31") {
286-
items { title }
287-
}
288-
1`] = `
258+
exports[`\\n feed(url: "https://rolflekang.com/feed.xml", startTime: "2020-01-01", endTime: "2020-10-31") {\\n items { title }\\n }\\n 1`] = `
289259
{
290260
"data": {
291261
"feed": {
@@ -305,9 +275,7 @@ exports[`
305275
}
306276
`;
307277

308-
exports[`
309-
feed(url: "https://rolflekang.com/testing-simple-graphql-services") { title }
310-
1`] = `
278+
exports[`\\n feed(url: "https://rolflekang.com/testing-simple-graphql-services") { title }\\n 1`] = `
311279
{
312280
"data": {
313281
"feed": null,
@@ -334,9 +302,7 @@ exports[`
334302
}
335303
`;
336304

337-
exports[`
338-
feed(url: "not-a-url") { title }
339-
1`] = `
305+
exports[`\\n feed(url: "not-a-url") { title }\\n 1`] = `
340306
{
341307
"data": {
342308
"feed": null,
@@ -363,9 +329,7 @@ exports[`
363329
}
364330
`;
365331

366-
exports[`
367-
findFeed(url: "ftp://example.com") { link }
368-
1`] = `
332+
exports[`\\n findFeed(url: "ftp://example.com") { link }\\n 1`] = `
369333
{
370334
"data": null,
371335
"errors": [
@@ -390,9 +354,7 @@ exports[`
390354
}
391355
`;
392356

393-
exports[`
394-
findFeed(url: "https://non--------existing-domain.com") { link }
395-
1`] = `
357+
exports[`\\n findFeed(url: "https://non--------existing-domain.com") { link }\\n 1`] = `
396358
{
397359
"data": null,
398360
"errors": [
@@ -417,9 +379,7 @@ exports[`
417379
}
418380
`;
419381

420-
exports[`
421-
findFeed(url: "https://rolflekang.com") { link }
422-
1`] = `
382+
exports[`\\n findFeed(url: "https://rolflekang.com") { link }\\n 1`] = `
423383
{
424384
"data": {
425385
"findFeed": [
@@ -434,9 +394,7 @@ exports[`
434394
}
435395
`;
436396

437-
exports[`
438-
findFeed(url: "not-a-url") { link }
439-
1`] = `
397+
exports[`\\n findFeed(url: "not-a-url") { link }\\n 1`] = `
440398
{
441399
"data": null,
442400
"errors": [

src/parsers/__tests__/__snapshots__/feedme.tests.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`should parse string from google.blogspot.com/feeds/posts/default 1`] = `
44
{

src/parsers/__tests__/__snapshots__/feedparser.tests.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`should parse string from google.blogspot.com/feeds/posts/default 1`] = `
44
{

src/parsers/__tests__/__snapshots__/jsonfeed-v1.tests.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`should parse from rolflekang.com/feed.json 1`] = `
44
{

src/parsers/__tests__/__snapshots__/rss-parser.tests.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`should parse string from google.blogspot.com/feeds/posts/default 1`] = `
44
{

src/parsers/__tests__/__snapshots__/rss-to-json.tests.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`should parse string from rolflekang.com/feed.xml 1`] = `
44
{

0 commit comments

Comments
 (0)