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/
-
activeUneffectuatedConsumer.js
-
appCmpByRole.js
-
appCustType.js
-
appStat.js
-
appType.js
-
billacct.js
-
binder.js
-
consumer.js
-
consumerByExchangeSubscriberId.js
-
consumerGroupRenewal.js
-
consumeraddrrel.js
-
consumeranswerrel.js
-
consumerbillacct.js
-
consumerquote.js
-
enrollmentagreement.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.