Skip to content

Commit d695f53

Browse files
subscription-test: standardize generator names (#3070)
1 parent 1af561f commit d695f53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/subscription/__tests__/subscribe-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ describe('Subscription Initialization Phase', () => {
164164
}),
165165
});
166166

167-
async function* fooGen() {
167+
async function* fooGenerator() {
168168
yield { foo: 'FooValue' };
169169
}
170170

171171
const subscription = await subscribe({
172172
schema,
173173
document: parse('subscription { foo }'),
174-
rootValue: { foo: fooGen },
174+
rootValue: { foo: fooGenerator },
175175
});
176176
invariant(isAsyncIterable(subscription));
177177

0 commit comments

Comments
 (0)