Skip to content

Commit

Permalink
Correct error message about resolve specified on input fields (#1496)
Browse files Browse the repository at this point in the history
Fixes #709
  • Loading branch information
IvanGoncharov authored Aug 30, 2018
1 parent c2dfccf commit 527e05a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/type/__tests__/definition-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ describe('Type System: Input Object fields must not have resolvers', () => {
},
});
expect(() => inputObjType.getFields()).to.throw(
'SomeInputObject.f field type has a resolve property, ' +
'SomeInputObject.f field has a resolve property, ' +
'but Input Types cannot define resolvers.',
);
});
Expand All @@ -1043,7 +1043,7 @@ describe('Type System: Input Object fields must not have resolvers', () => {
},
});
expect(() => inputObjType.getFields()).to.throw(
'SomeInputObject.f field type has a resolve property, ' +
'SomeInputObject.f field has a resolve property, ' +
'but Input Types cannot define resolvers.',
);
});
Expand Down
2 changes: 1 addition & 1 deletion src/type/definition.js
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ function defineInputFieldMap(
};
invariant(
!field.hasOwnProperty('resolve'),
`${config.name}.${fieldName} field type has a resolve property, but ` +
`${config.name}.${fieldName} field has a resolve property, but ` +
'Input Types cannot define resolvers.',
);
resultFieldMap[fieldName] = field;
Expand Down

0 comments on commit 527e05a

Please sign in to comment.