Skip to content

Commit

Permalink
ci: revert snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
dr3 committed Mar 5, 2023
1 parent 0e7929d commit 312b194
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/middlewares/__tests__/__snapshots__/auth-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ exports[`middlewares/auth \`token\` option as string (with default \`prefix\` an
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
}
`;

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

Expand All @@ -36,6 +38,7 @@ exports[`middlewares/auth \`tokenRefreshPromise\` should be called on 401 respon
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
},
],
[
Expand All @@ -48,6 +51,7 @@ exports[`middlewares/auth \`tokenRefreshPromise\` should be called on 401 respon
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
},
],
]
Expand Down
3 changes: 3 additions & 0 deletions src/middlewares/__tests__/__snapshots__/batch-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exports[`middlewares/batch option \`allowMutations\` should not batch mutations
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
},
],
[
Expand All @@ -34,6 +35,7 @@ exports[`middlewares/batch option \`allowMutations\` should not batch mutations
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
},
],
]
Expand Down Expand Up @@ -136,6 +138,7 @@ exports[`middlewares/batch should make a successfull single request 1`] = `
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exports[`middlewares/legacyBatch option \`allowMutations\` should not batch muta
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
},
],
[
Expand All @@ -34,6 +35,7 @@ exports[`middlewares/legacyBatch option \`allowMutations\` should not batch muta
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
},
],
]
Expand Down Expand Up @@ -136,6 +138,7 @@ exports[`middlewares/legacyBatch should make a successfull single request 1`] =
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
}
`;

Expand Down
7 changes: 6 additions & 1 deletion src/middlewares/__tests__/__snapshots__/logger-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@ exports[`middlewares/logger measure request time for request 1`] = `
"Run MyRequest",
RelayRequest {
"cacheConfig": {},
"controller": null,
"controller": AbortController {
Symbol(SameObject caches): {
"signal": AbortSignal {},
},
},
"fetchOpts": {
"body": "{"id":"MyRequest","query":"","variables":{}}",
"headers": {
"Accept": "*/*",
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
},
"id": "MyRequest",
"operation": {
Expand Down
7 changes: 6 additions & 1 deletion src/middlewares/__tests__/__snapshots__/perf-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
exports[`middlewares/perf measure request time for request 1`] = `
RelayRequest {
"cacheConfig": {},
"controller": null,
"controller": AbortController {
Symbol(SameObject caches): {
"signal": AbortSignal {},
},
},
"fetchOpts": {
"body": "{"id":"MyRequest","query":"","variables":{}}",
"headers": {
"Accept": "*/*",
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
},
"id": "MyRequest",
"operation": {
Expand Down
6 changes: 6 additions & 0 deletions src/middlewares/__tests__/__snapshots__/retry-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ exports[`middlewares/retry middleware should make retries 1`] = `
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
},
],
[
Expand All @@ -22,6 +23,7 @@ exports[`middlewares/retry middleware should make retries 1`] = `
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
},
],
[
Expand All @@ -33,6 +35,7 @@ exports[`middlewares/retry middleware should make retries 1`] = `
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
},
],
]
Expand All @@ -49,6 +52,7 @@ exports[`middlewares/retry middleware should retry request on timeout 1`] = `
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
},
],
[
Expand All @@ -60,6 +64,7 @@ exports[`middlewares/retry middleware should retry request on timeout 1`] = `
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
},
],
[
Expand All @@ -71,6 +76,7 @@ exports[`middlewares/retry middleware should retry request on timeout 1`] = `
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
},
],
]
Expand Down
4 changes: 4 additions & 0 deletions src/middlewares/__tests__/__snapshots__/url-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ exports[`middlewares/url \`method\` option 1`] = `
"Content-Type": "application/json",
},
"method": "GET",
"signal": AbortSignal {},
"url": "/get_url",
}
`;
Expand All @@ -20,6 +21,7 @@ exports[`middlewares/url \`url\` option as string 1`] = `
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
"url": "/some_url",
}
`;
Expand All @@ -32,6 +34,7 @@ exports[`middlewares/url \`url\` option as thunk 1`] = `
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
"url": "/thunk_url",
}
`;
Expand All @@ -44,6 +47,7 @@ exports[`middlewares/url \`url\` option as thunk with Promise 1`] = `
"Content-Type": "application/json",
},
"method": "POST",
"signal": AbortSignal {},
"url": "/thunk_url_promise",
}
`;

0 comments on commit 312b194

Please sign in to comment.