Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Jan 13, 2025
1 parent 4a3252b commit b3d8142
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/error/__tests__/GraphQLError-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ describe('toJSON', () => {

expect(error.toJSON()).to.deep.equal({
message: 'msg',
locations: undefined,
path: ['path', 3, 'to', 'field'],
});
});
Expand All @@ -316,6 +317,8 @@ describe('toJSON', () => {

expect(error.toJSON()).to.deep.equal({
message: 'msg',
locations: undefined,
path: undefined,
extensions: { foo: 'bar' },
});
});
Expand Down

0 comments on commit b3d8142

Please sign in to comment.