Skip to content

Commit ac90b52

Browse files
authored
Fix coerceInputValue test name (#3681)
* Fix coerceInputValue test name * fix grammar
1 parent 48003ed commit ac90b52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utilities/__tests__/coerceInputValue-test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ describe('coerceInputValue', () => {
118118
]);
119119
});
120120

121-
it('returns an error for undefined result', () => {
121+
it('returns a thrown error', () => {
122122
const inputValue = { error: 'Some error message' };
123123
const result = coerceValue(inputValue, TestScalar);
124124
expectErrors(result).to.deep.equal([

src/utilities/coerceInputValue.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function coerceInputValueImpl(
148148
if (isLeafType(type)) {
149149
let parseResult;
150150

151-
// Scalars and Enums determine if a input value is valid via parseValue(),
151+
// Scalars and Enums determine if an input value is valid via parseValue(),
152152
// which can throw to indicate failure. If it throws, maintain a reference
153153
// to the original error.
154154
try {

0 commit comments

Comments
 (0)