Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Dec 17, 2024
1 parent c13892b commit 3e0d3cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/utilities/__tests__/coerceInputValue-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,13 @@ describe('coerceInputValue', () => {
});

describe('for GraphQLInputObject with default value', () => {
const makeTestInputObject = (defaultValue: any) =>
const makeTestInputObject = (defaultValue: unknown) =>
new GraphQLInputObjectType({
name: 'TestInputObject',
fields: {
foo: {
type: new GraphQLScalarType({ name: 'TestScalar' }),
default:
defaultValue === undefined ? undefined : { value: defaultValue },
default: { value: defaultValue },
},
},
});
Expand Down
6 changes: 2 additions & 4 deletions src/utilities/__tests__/validateInputValue-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,7 @@ describe('validateInputValue', () => {
fields: {
foo: {
type: new GraphQLScalarType({ name: 'TestScalar' }),
default:
defaultValue === undefined ? undefined : { value: defaultValue },
default: { value: defaultValue },
},
},
});
Expand Down Expand Up @@ -802,8 +801,7 @@ describe('validateInputLiteral', () => {
fields: {
foo: {
type: new GraphQLScalarType({ name: 'TestScalar' }),
default:
defaultValue === undefined ? undefined : { value: defaultValue },
default: { value: defaultValue },
},
},
});
Expand Down

0 comments on commit 3e0d3cc

Please sign in to comment.