Skip to content

Commit 0b69828

Browse files
committed
fix: Fix schema tests around remove type.
1 parent 0129b1c commit 0b69828

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/introspection/getSchemaFromData.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {
2-
GraphQLBoolean,
32
GraphQLID,
43
GraphQLInt,
54
GraphQLList,

src/introspection/getSchemaFromData.spec.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {
2-
GraphQLBoolean,
32
GraphQLID,
43
GraphQLInt,
54
GraphQLList,
@@ -228,7 +227,7 @@ test('creates three mutation fields per data type', () => {
228227
description: null,
229228
},
230229
]);
231-
expect(mutations['removePost'].type.name).toEqual(GraphQLBoolean.name);
230+
expect(mutations['removePost'].type.name).toEqual(PostType.name);
232231
expect(mutations['removePost'].args).toEqual([
233232
{
234233
name: 'id',
@@ -267,7 +266,7 @@ test('creates three mutation fields per data type', () => {
267266
description: null,
268267
},
269268
]);
270-
expect(mutations['removeUser'].type.name).toEqual(GraphQLBoolean.name);
269+
expect(mutations['removeUser'].type.name).toEqual(UserType.name);
271270
expect(mutations['removeUser'].args).toEqual([
272271
{
273272
defaultValue: undefined,

0 commit comments

Comments
 (0)