Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fix in extensions-test #2168

Merged
merged 1 commit into from Sep 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/type/__tests__/extensions-test.js
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