From 5010bb8a95a9acd914b7857c1163a5d381aec04c Mon Sep 17 00:00:00 2001 From: Lee Byron Date: Wed, 5 May 2021 20:44:46 -0700 Subject: [PATCH] Add test for #3061 --- src/language/__tests__/parser-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', () => {