Skip to content

Commit ffa18e9

Browse files
authored
Minor simplification in schema-test (#3770)
1 parent 2dc1baf commit ffa18e9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/type/__tests__/schema-test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -417,15 +417,15 @@ describe('Type System: Schema', () => {
417417
});
418418

419419
it('returns `undefined` for introspection fields in wrong location', () => {
420-
expect(schema.getField(petType, '__type')).to.equal(undefined);
421-
expect(schema.getField(dogType, '__type')).to.equal(undefined);
422-
expect(schema.getField(mutationType, '__type')).to.equal(undefined);
423-
expect(schema.getField(subscriptionType, '__type')).to.equal(undefined);
424-
425-
expect(schema.getField(petType, '__schema')).to.equal(undefined);
426-
expect(schema.getField(dogType, '__schema')).to.equal(undefined);
427-
expect(schema.getField(mutationType, '__schema')).to.equal(undefined);
428-
expect(schema.getField(subscriptionType, '__schema')).to.equal(undefined);
420+
expectField(petType, '__type').to.equal(undefined);
421+
expectField(dogType, '__type').to.equal(undefined);
422+
expectField(mutationType, '__type').to.equal(undefined);
423+
expectField(subscriptionType, '__type').to.equal(undefined);
424+
425+
expectField(petType, '__schema').to.equal(undefined);
426+
expectField(dogType, '__schema').to.equal(undefined);
427+
expectField(mutationType, '__schema').to.equal(undefined);
428+
expectField(subscriptionType, '__schema').to.equal(undefined);
429429
});
430430
});
431431

0 commit comments

Comments
 (0)