Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/type/__tests__/extensions-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,13 @@ describe('Type System: Extensions', () => {
});

it('with extensions', () => {
const interfaceExtensions = Object.freeze({ SomeObjectExt: 'object' });
const interfaceExtensions = Object.freeze({
SomeInterfaceExt: 'interface',
});
const fieldExtensions = Object.freeze({ SomeFieldExt: 'field' });
const argExtensions = Object.freeze({ SomeArgExt: 'arg' });

const someInterface = new GraphQLObjectType({
const someInterface = new GraphQLInterfaceType({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a big one. So I didn't test GraphQLInterfaceType at all 🤦‍♂
@Cito Thanks a lot 👍

name: 'SomeInterface',
fields: {
someField: {
Expand Down Expand Up @@ -200,7 +202,7 @@ describe('Type System: Extensions', () => {
});

it('with extensions', () => {
const unionExtensions = Object.freeze({ SomeScalarExt: 'union' });
const unionExtensions = Object.freeze({ SomeUnionExt: 'union' });

const someUnion = new GraphQLUnionType({
name: 'SomeUnion',
Expand Down