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/bluesource-audience-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 all files within the following directories (base directory: /src/business_services):
-
/addresses (including all files in sub-directories)
-
/contact (including all files in sub-directories)
-
/contract (including all files in sub-directories)
-
/duplogic (including all files in sub-directories)
-
/enrollment (including all files in sub-directories)
-
/event (including all files in sub-directories)
Important Notes
-
You need to achieve 90%+ coverage on each file mentioned above.
-
You need to mock any calls to 3rd party APIs.