We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9680b06 commit 3fd57a8Copy full SHA for 3fd57a8
src/execution/__tests__/stream-test.js
@@ -402,16 +402,14 @@ describe('Execute: stream directive', () => {
402
403
const result = await execute({ schema, document, rootValue: {} });
404
405
- const results = [];
406
- if (isAsyncIterable(result)) {
407
- const asyncResults = await Promise.all([
408
- result.next(),
409
410
411
412
- ]);
413
- results.push(...asyncResults);
414
- }
+ expect(isAsyncIterable(result)).to.equal(true);
+
+ const results = await Promise.all([
+ result.next(),
+ ]);
415
416
expect(results).to.deep.equal([
417
{
0 commit comments