Skip to content

Commit

Permalink
test(client): pass variables around
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Sep 10, 2020
1 parent e892530 commit 2201987
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/tests/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ describe('subscription operation', () => {
const dispose = client.subscribe(
{
operationName: 'BecomingHappy',
query: `subscription BecomingHappy {
becameHappy {
query: `subscription BecomingHappy($secret: String!) {
becameHappy(secret: $secret) {
name
}
}`,
variables: {},
variables: { secret: 'drink water' },
},
{
next: nextFn,
Expand Down Expand Up @@ -128,12 +128,12 @@ describe('subscription operation', () => {
const disposeHappy = client.subscribe(
{
operationName: 'BecomingHappy',
query: `subscription BecomingHappy {
becameHappy {
query: `subscription BecomingHappy($secret: String!) {
becameHappy(secret: $secret) {
name
}
}`,
variables: {},
variables: { secret: 'live life' },
},
{
next: nextFnForHappy,
Expand Down Expand Up @@ -238,12 +238,12 @@ describe('"concurrency"', () => {
disposeOfHappy = client.subscribe(
{
operationName: 'BecomingHappy',
query: `subscription BecomingHappy {
becameHappy {
query: `subscription BecomingHappy($secret: String!) {
becameHappy(secret: $secret) {
name
}
}`,
variables: {},
variables: { secret: 'there is no secret' },
},
{
next: nextFnForHappy,
Expand Down

0 comments on commit 2201987

Please sign in to comment.