Skip to content

Commit

Permalink
fix ts error.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmac committed Sep 27, 2021
1 parent 544a970 commit 31b0416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/batch-execute/tests/batchExecute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe('batch execution', () => {
batchExec({ document: parse('{ ...on Query { field2 } }') }),
]) as ExecutionResult[];

const squishedDoc = executorDocument.replace(/\s+/g, ' ');
const squishedDoc = executorDocument?.replace(/\s+/g, ' ');
expect(squishedDoc).toMatch('... on Query { _0_field1: field1 }');
expect(squishedDoc).toMatch('... on Query { _1_field2: field2 }');
expect(first?.data).toEqual({ field1: '1' });
Expand Down

0 comments on commit 31b0416

Please sign in to comment.