diff --git a/src/language/__tests__/parser-test.js b/src/language/__tests__/parser-test.js index eb718ce580..ada7731747 100644 --- a/src/language/__tests__/parser-test.js +++ b/src/language/__tests__/parser-test.js @@ -360,7 +360,7 @@ describe('Parser', () => { it('allows parsing without source location information', () => { const result = parse('{ id }', { noLocation: true }); - expect(result.loc).to.equal(undefined); + expect(result).to.not.haveOwnProperty('loc'); }); it('Legacy: allows parsing fragment defined variables', () => {