Challenge Overview
Challenge objectives
-
Improve the unit testing coverage of the files mentioned in the detailed requirements section.
Tech stack
-
Node.js
Code access
Repo: https://github.com/tc-bluesource/consumer-api
Branch: develop
You will find a link to access the repo on the challenge forum (available after you register).
Detailed requirements
As part of this challenge, you need to create new unit tests in order to improve the coverage on the following files:
Directory:/models/
-
consumeremailrel.js
-
consumerfamily.js
-
consumerpcprelationship.js
-
consumerphonerel.js
-
consumerpreferencerel.js
-
consumerquoterel.js
-
consumerrelationship.js
-
consumerreltype.js
-
consumersrc.js
-
consumersub.js
-
consumertype.js
-
contact.js
-
email.js
-
employmentstatus.js
-
enrollmentpdf.js
-
exchangeCancel.js
-
exchangecontractinfo.js
Important Notes
-
You need to achieve 90%+ coverage on each file mentioned above. Anything below will be considered incomplete.
-
You need to mock any calls to 3rd party APIs.
What to submit
Submit a git patch for the latest commit in the develop branch. Make sure to mention the exact commit you used so we can apply your patch file without issues.