Skip to content

Commit 312b194

Browse files
committed
ci: revert snapshots
1 parent 0e7929d commit 312b194

File tree

7 files changed

+32
-2
lines changed

7 files changed

+32
-2
lines changed

src/middlewares/__tests__/__snapshots__/auth-test.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ exports[`middlewares/auth \`token\` option as string (with default \`prefix\` an
99
"Content-Type": "application/json",
1010
},
1111
"method": "POST",
12+
"signal": AbortSignal {},
1213
}
1314
`;
1415

@@ -21,6 +22,7 @@ exports[`middlewares/auth \`token\` option as thunk (with custom \`prefix\` and
2122
"MyAuthorization": "MyBearer 333",
2223
},
2324
"method": "POST",
25+
"signal": AbortSignal {},
2426
}
2527
`;
2628

@@ -36,6 +38,7 @@ exports[`middlewares/auth \`tokenRefreshPromise\` should be called on 401 respon
3638
"Content-Type": "application/json",
3739
},
3840
"method": "POST",
41+
"signal": AbortSignal {},
3942
},
4043
],
4144
[
@@ -48,6 +51,7 @@ exports[`middlewares/auth \`tokenRefreshPromise\` should be called on 401 respon
4851
"Content-Type": "application/json",
4952
},
5053
"method": "POST",
54+
"signal": AbortSignal {},
5155
},
5256
],
5357
]

src/middlewares/__tests__/__snapshots__/batch-test.js.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ exports[`middlewares/batch option \`allowMutations\` should not batch mutations
2323
"Content-Type": "application/json",
2424
},
2525
"method": "POST",
26+
"signal": AbortSignal {},
2627
},
2728
],
2829
[
@@ -34,6 +35,7 @@ exports[`middlewares/batch option \`allowMutations\` should not batch mutations
3435
"Content-Type": "application/json",
3536
},
3637
"method": "POST",
38+
"signal": AbortSignal {},
3739
},
3840
],
3941
]
@@ -136,6 +138,7 @@ exports[`middlewares/batch should make a successfull single request 1`] = `
136138
"Content-Type": "application/json",
137139
},
138140
"method": "POST",
141+
"signal": AbortSignal {},
139142
}
140143
`;
141144

src/middlewares/__tests__/__snapshots__/legacyBatch-test.js.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ exports[`middlewares/legacyBatch option \`allowMutations\` should not batch muta
2323
"Content-Type": "application/json",
2424
},
2525
"method": "POST",
26+
"signal": AbortSignal {},
2627
},
2728
],
2829
[
@@ -34,6 +35,7 @@ exports[`middlewares/legacyBatch option \`allowMutations\` should not batch muta
3435
"Content-Type": "application/json",
3536
},
3637
"method": "POST",
38+
"signal": AbortSignal {},
3739
},
3840
],
3941
]
@@ -136,6 +138,7 @@ exports[`middlewares/legacyBatch should make a successfull single request 1`] =
136138
"Content-Type": "application/json",
137139
},
138140
"method": "POST",
141+
"signal": AbortSignal {},
139142
}
140143
`;
141144

src/middlewares/__tests__/__snapshots__/logger-test.js.snap

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@ exports[`middlewares/logger measure request time for request 1`] = `
66
"Run MyRequest",
77
RelayRequest {
88
"cacheConfig": {},
9-
"controller": null,
9+
"controller": AbortController {
10+
Symbol(SameObject caches): {
11+
"signal": AbortSignal {},
12+
},
13+
},
1014
"fetchOpts": {
1115
"body": "{"id":"MyRequest","query":"","variables":{}}",
1216
"headers": {
1317
"Accept": "*/*",
1418
"Content-Type": "application/json",
1519
},
1620
"method": "POST",
21+
"signal": AbortSignal {},
1722
},
1823
"id": "MyRequest",
1924
"operation": {

src/middlewares/__tests__/__snapshots__/perf-test.js.snap

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@
33
exports[`middlewares/perf measure request time for request 1`] = `
44
RelayRequest {
55
"cacheConfig": {},
6-
"controller": null,
6+
"controller": AbortController {
7+
Symbol(SameObject caches): {
8+
"signal": AbortSignal {},
9+
},
10+
},
711
"fetchOpts": {
812
"body": "{"id":"MyRequest","query":"","variables":{}}",
913
"headers": {
1014
"Accept": "*/*",
1115
"Content-Type": "application/json",
1216
},
1317
"method": "POST",
18+
"signal": AbortSignal {},
1419
},
1520
"id": "MyRequest",
1621
"operation": {

src/middlewares/__tests__/__snapshots__/retry-test.js.snap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ exports[`middlewares/retry middleware should make retries 1`] = `
1111
"Content-Type": "application/json",
1212
},
1313
"method": "POST",
14+
"signal": AbortSignal {},
1415
},
1516
],
1617
[
@@ -22,6 +23,7 @@ exports[`middlewares/retry middleware should make retries 1`] = `
2223
"Content-Type": "application/json",
2324
},
2425
"method": "POST",
26+
"signal": AbortSignal {},
2527
},
2628
],
2729
[
@@ -33,6 +35,7 @@ exports[`middlewares/retry middleware should make retries 1`] = `
3335
"Content-Type": "application/json",
3436
},
3537
"method": "POST",
38+
"signal": AbortSignal {},
3639
},
3740
],
3841
]
@@ -49,6 +52,7 @@ exports[`middlewares/retry middleware should retry request on timeout 1`] = `
4952
"Content-Type": "application/json",
5053
},
5154
"method": "POST",
55+
"signal": AbortSignal {},
5256
},
5357
],
5458
[
@@ -60,6 +64,7 @@ exports[`middlewares/retry middleware should retry request on timeout 1`] = `
6064
"Content-Type": "application/json",
6165
},
6266
"method": "POST",
67+
"signal": AbortSignal {},
6368
},
6469
],
6570
[
@@ -71,6 +76,7 @@ exports[`middlewares/retry middleware should retry request on timeout 1`] = `
7176
"Content-Type": "application/json",
7277
},
7378
"method": "POST",
79+
"signal": AbortSignal {},
7480
},
7581
],
7682
]

src/middlewares/__tests__/__snapshots__/url-test.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ exports[`middlewares/url \`method\` option 1`] = `
88
"Content-Type": "application/json",
99
},
1010
"method": "GET",
11+
"signal": AbortSignal {},
1112
"url": "/get_url",
1213
}
1314
`;
@@ -20,6 +21,7 @@ exports[`middlewares/url \`url\` option as string 1`] = `
2021
"Content-Type": "application/json",
2122
},
2223
"method": "POST",
24+
"signal": AbortSignal {},
2325
"url": "/some_url",
2426
}
2527
`;
@@ -32,6 +34,7 @@ exports[`middlewares/url \`url\` option as thunk 1`] = `
3234
"Content-Type": "application/json",
3335
},
3436
"method": "POST",
37+
"signal": AbortSignal {},
3538
"url": "/thunk_url",
3639
}
3740
`;
@@ -44,6 +47,7 @@ exports[`middlewares/url \`url\` option as thunk with Promise 1`] = `
4447
"Content-Type": "application/json",
4548
},
4649
"method": "POST",
50+
"signal": AbortSignal {},
4751
"url": "/thunk_url_promise",
4852
}
4953
`;

0 commit comments

Comments
 (0)