Skip to content

Commit ed6f978

Browse files
committed
fix coverage
1 parent b759e92 commit ed6f978

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/language/__tests__/printer-test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ describe('Printer: Query document', () => {
308308
expect(print(parseSchemaCoordinate(' Name . field ( arg: )'))).to.equal(
309309
'Name.field(arg:)',
310310
);
311+
expect(print(parseSchemaCoordinate(' Name :: Name '))).to.equal(
312+
'Name::Name',
313+
);
311314
expect(print(parseSchemaCoordinate(' @ name '))).to.equal('@name');
312315
expect(print(parseSchemaCoordinate(' @ name (arg:) '))).to.equal(
313316
'@name(arg:)',

src/utilities/__tests__/resolveSchemaCoordinate-test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ describe('resolveSchemaCoordinate', () => {
111111
expect(
112112
resolveSchemaCoordinate(schema, 'SearchFilter::UNKNOWN'),
113113
).to.deep.equal(undefined);
114+
115+
expect(() => resolveSchemaCoordinate(schema, 'Unknown::UNKNOWN')).to.throw(
116+
'Expected "Unknown" to be defined as a type in the schema.',
117+
);
118+
119+
expect(() => resolveSchemaCoordinate(schema, 'Business::id')).to.throw(
120+
'Expected "Business" to be an Enum type.',
121+
);
114122
});
115123

116124
it('resolves a Field Argument', () => {

0 commit comments

Comments
 (0)