Skip to content

Commit

Permalink
refactor: store ExecutionContext in Executor
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Jun 22, 2021
1 parent 5fbc714 commit 58ba402
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 226 deletions.
7 changes: 2 additions & 5 deletions src/execution/__tests__/subscribe-test.ts
Expand Up @@ -410,11 +410,8 @@ describe('Subscription Initialization Phase', () => {
const document = parse('subscription { foo }');
const result = await subscribe({ schema, document });

const executor = new Executor();
const exeContext = executor.buildExecutionContext({ schema, document });
expect(await executor.createSourceEventStream(exeContext)).to.deep.equal(
result,
);
const executor = new Executor({ schema, document });
expect(await executor.createSourceEventStream()).to.deep.equal(result);
return result;
}

Expand Down

0 comments on commit 58ba402

Please sign in to comment.