Skip to content

Commit

Permalink
test: add missing test case for updateById resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Jul 7, 2020
1 parent 9f62623 commit 8340eab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/resolvers/__tests__/updateById-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ describe('updateById() ->', () => {

it('should have all fields optional in record', () => {
const resolver = updateById(UserModel, UserTC);
expect(resolver.getArgITC('record').getFieldTypeName('_id')).toBe('MongoID!');
expect(resolver.getArgITC('record').getFieldTypeName('name')).toBe('String');
expect(resolver.getArgITC('record').getFieldTypeName('age')).toBe('Float');
});
Expand Down

0 comments on commit 8340eab

Please sign in to comment.