Skip to content

Commit a59ce3f

Browse files
committed
Fix error deep equality tests
1 parent c7a9fdb commit a59ce3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/language/__tests__/parser-test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ describe('Parser', () => {
726726
it('rejects Name . Name . Name', () => {
727727
expect(() => parseSchemaCoordinate('MyType.field.deep'))
728728
.to.throw()
729-
.to.deep.equal({
729+
.to.deep.include({
730730
message: 'Syntax Error: Expected <EOF>, found ".".',
731731
locations: [{ line: 1, column: 13 }],
732732
});
@@ -759,7 +759,7 @@ describe('Parser', () => {
759759
it('rejects Name . Name ( Name : Name )', () => {
760760
expect(() => parseSchemaCoordinate('MyType.field(arg: value)'))
761761
.to.throw()
762-
.to.deep.equal({
762+
.to.deep.include({
763763
message: 'Syntax Error: Expected ")", found Name "value".',
764764
locations: [{ line: 1, column: 19 }],
765765
});
@@ -804,7 +804,7 @@ describe('Parser', () => {
804804
it('rejects @ Name . Name', () => {
805805
expect(() => parseSchemaCoordinate('@myDirective.field'))
806806
.to.throw()
807-
.to.deep.equal({
807+
.to.deep.include({
808808
message: 'Syntax Error: Expected <EOF>, found ".".',
809809
locations: [{ line: 1, column: 13 }],
810810
});

0 commit comments

Comments
 (0)