Skip to content

Commit 6c66cbd

Browse files
committed
Minor fix in extensions-test
1 parent c68acd8 commit 6c66cbd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/type/__tests__/extensions-test.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,13 @@ describe('Type System: Extensions', () => {
149149
});
150150

151151
it('with extensions', () => {
152-
const interfaceExtensions = Object.freeze({ SomeObjectExt: 'object' });
152+
const interfaceExtensions = Object.freeze({
153+
SomeInterfaceExt: 'interface',
154+
});
153155
const fieldExtensions = Object.freeze({ SomeFieldExt: 'field' });
154156
const argExtensions = Object.freeze({ SomeArgExt: 'arg' });
155157

156-
const someInterface = new GraphQLObjectType({
158+
const someInterface = new GraphQLInterfaceType({
157159
name: 'SomeInterface',
158160
fields: {
159161
someField: {
@@ -200,7 +202,7 @@ describe('Type System: Extensions', () => {
200202
});
201203

202204
it('with extensions', () => {
203-
const unionExtensions = Object.freeze({ SomeScalarExt: 'union' });
205+
const unionExtensions = Object.freeze({ SomeUnionExt: 'union' });
204206

205207
const someUnion = new GraphQLUnionType({
206208
name: 'SomeUnion',

0 commit comments

Comments
 (0)