Skip to content

Commit

Permalink
fix(gql): update snapshot
Browse files Browse the repository at this point in the history
- node-fetch does not support `credentials` at all
- we use x-app-secrets so it's not used anyway
- LIFF implements its own gql (which uses Authorization header to talk to line bot graphql) so is not affected either
  • Loading branch information
MrOrz committed Aug 14, 2023
1 parent ae9938f commit 5db946f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/lib/__tests__/gql.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ it('invokes fetch and returns result', async () => {
"https://dev-api.cofacts.tw/graphql",
Object {
"body": "[{\\"query\\":\\"(bar: String){foo}\\",\\"variables\\":{\\"bar\\":\\"bar\\"}}]",
"credentials": "include",
"headers": Object {
"Content-Type": "application/json",
"x-app-secret": "CHANGE_ME",
Expand Down Expand Up @@ -151,7 +150,6 @@ it('batches consecutive requests by URL', async () => {
"https://dev-api.cofacts.tw/graphql",
Object {
"body": "[{\\"query\\":\\"\\\\n {\\\\n foo\\\\n }\\\\n \\"},{\\"query\\":\\"\\\\n {\\\\n bar\\\\n }\\\\n \\"}]",
"credentials": "include",
"headers": Object {
"Content-Type": "application/json",
"x-app-secret": "CHANGE_ME",
Expand All @@ -163,7 +161,6 @@ it('batches consecutive requests by URL', async () => {
"https://dev-api.cofacts.tw/graphql?userId=another-user",
Object {
"body": "[{\\"query\\":\\"\\\\n {\\\\n foobar\\\\n }\\\\n \\",\\"variables\\":{}}]",
"credentials": "include",
"headers": Object {
"Content-Type": "application/json",
"x-app-secret": "CHANGE_ME",
Expand Down

0 comments on commit 5db946f

Please sign in to comment.