Skip to content

Commit

Permalink
feat: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BatuhanW committed Sep 30, 2024
1 parent 3d82673 commit f17ab20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hasura/test/getOne/index.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ nock("https://flowing-mammal-24.hasura.app:443", { encodedQueryParams: true })
.post("/v1/graphql", {
query:
"query GetPost($id: uuid!) {\n posts_by_pk(id: $id) {\n id\n title\n content\n category {\n id\n }\n }\n}\n",
variables: { id: "572708c7-840d-430a-befd-1416bdee799a" },
variables: { id: "572708c7-840d-430a-befd-1416bdee799a", foo: "bar" },
operationName: "GetPost",
})
.reply(
Expand Down Expand Up @@ -531,7 +531,7 @@ nock("https://flowing-mammal-24.hasura.app:443", { encodedQueryParams: true })
.post("/v1/graphql", {
query:
"query GetPost($id: uuid!) {\n posts_by_pk(id: $id) {\n id\n title\n content\n category {\n id\n }\n }\n}\n",
variables: { id: "572708c7-840d-430a-befd-1416bdee799a" },
variables: { id: "572708c7-840d-430a-befd-1416bdee799a", foo: "bar" },
operationName: "GetPost",
})
.reply(
Expand Down
3 changes: 3 additions & 0 deletions packages/hasura/test/getOne/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ describe("with gql", () => {
}
}
`,
gqlVariables: {
foo: "bar",
},
},
});

Expand Down

0 comments on commit f17ab20

Please sign in to comment.