Skip to content

Commit

Permalink
subscription-test: standardize generator names (#3070)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 10, 2021
1 parent 1af561f commit d695f53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/subscription/__tests__/subscribe-test.js
Expand Up @@ -164,14 +164,14 @@ describe('Subscription Initialization Phase', () => {
}),
});

async function* fooGen() {
async function* fooGenerator() {
yield { foo: 'FooValue' };
}

const subscription = await subscribe({
schema,
document: parse('subscription { foo }'),
rootValue: { foo: fooGen },
rootValue: { foo: fooGenerator },
});
invariant(isAsyncIterable(subscription));

Expand Down

0 comments on commit d695f53

Please sign in to comment.