Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utilities/__tests__/coerceInputValue-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ describe('coerceInputValue', () => {
]);
});

it('returns an error for undefined result', () => {
it('returns a thrown error', () => {
const inputValue = { error: 'Some error message' };
const result = coerceValue(inputValue, TestScalar);
expectErrors(result).to.deep.equal([
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/coerceInputValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function coerceInputValueImpl(
if (isLeafType(type)) {
let parseResult;

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