Skip to content

Commit f71f51d

Browse files
committed
fix coverage
1 parent 0e9c056 commit f71f51d

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/utilities/__tests__/coerceInputValue-test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,13 @@ describe('coerceInputValue', () => {
187187
});
188188

189189
describe('for GraphQLInputObject with default value', () => {
190-
const makeTestInputObject = (defaultValue: any) =>
190+
const makeTestInputObject = (defaultValue: unknown) =>
191191
new GraphQLInputObjectType({
192192
name: 'TestInputObject',
193193
fields: {
194194
foo: {
195195
type: new GraphQLScalarType({ name: 'TestScalar' }),
196-
default:
197-
defaultValue === undefined ? undefined : { value: defaultValue },
196+
default: { value: defaultValue },
198197
},
199198
},
200199
});

src/utilities/__tests__/validateInputValue-test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,7 @@ describe('validateInputValue', () => {
325325
fields: {
326326
foo: {
327327
type: new GraphQLScalarType({ name: 'TestScalar' }),
328-
default:
329-
defaultValue === undefined ? undefined : { value: defaultValue },
328+
default: { value: defaultValue },
330329
},
331330
},
332331
});
@@ -802,8 +801,7 @@ describe('validateInputLiteral', () => {
802801
fields: {
803802
foo: {
804803
type: new GraphQLScalarType({ name: 'TestScalar' }),
805-
default:
806-
defaultValue === undefined ? undefined : { value: defaultValue },
804+
default: { value: defaultValue },
807805
},
808806
},
809807
});

0 commit comments

Comments
 (0)