diff --git a/src/jsutils/__tests__/suggestionList-test.js b/src/jsutils/__tests__/suggestionList-test.js index 585431458c..5e4c071be0 100644 --- a/src/jsutils/__tests__/suggestionList-test.js +++ b/src/jsutils/__tests__/suggestionList-test.js @@ -21,7 +21,7 @@ describe('suggestionList', () => { expect(suggestionList('input', [])).to.deep.equal([]); }); - it('Returns options sorted based on simularity', () => { + it('Returns options sorted based on similarity', () => { expect(suggestionList('abc', [ 'a', 'ab', 'abc' ])) .to.deep.equal([ 'abc', 'ab' ]); }); diff --git a/src/jsutils/suggestionList.js b/src/jsutils/suggestionList.js index cc524c17a5..3f9962f87d 100644 --- a/src/jsutils/suggestionList.js +++ b/src/jsutils/suggestionList.js @@ -10,7 +10,7 @@ /** * Given an invalid input string and a list of valid options, returns a filtered - * list of valid options sorted based on their simularity with the input. + * list of valid options sorted based on their similarity with the input. */ export function suggestionList( input: string, diff --git a/src/validation/rules/FieldsOnCorrectType.js b/src/validation/rules/FieldsOnCorrectType.js index 9738ec33f2..c9f87c7b7e 100644 --- a/src/validation/rules/FieldsOnCorrectType.js +++ b/src/validation/rules/FieldsOnCorrectType.js @@ -49,9 +49,7 @@ export function undefinedFieldMessage( if (suggestedFields.length > MAX_LENGTH) { suggestions += `, or ${suggestedFields.length - MAX_LENGTH} other field`; } - message += - ` Did you mean to query ${suggestions}?`; - + message +=` Did you mean to query ${suggestions}?`; } return message; }