Challenge Overview
This is another challenge in the series for Cloud Hub, where we are cleaning up our tests and increasing our test coverage. These APIs are a series of endpoints built using swagger, nodeJS and mongodb. Right now the tests depend on seed data and error out if any data is missing or corrupt. We want the tests to run independent of any seed data. The tests should create and remove any data needed for validation.
Also we want to increase our test coverage by adding tests for the endpoints that don’t have coverage. This includes activities, plaid, add user.
We are open to the idea that these tests run against a different database, so we don’t corrupt the collections if a test fails.
Requirements
- Add test coverage for endpoints that don't have coverage.
- Fix any tests that are currently broken, looks like just 1 fails.
- Modify tests to create their own data for validation. 'npm test' on an empty database should pass all tests.
- All changes pass 'npm run lint'
Final Submission Guidelines
- Any additions or modifications to the code project pass on "npm run lint" and "npm test".
- Deploy your solution to Heroku and make sure to include your working Heroku instance URL as part of your documentation.
- Provide your code and documentation in a single zip file. Make sure you include steps to deploy to Heroku.
- The bulk of your documentation should be in the Readme.md and you should assume that this will be open source so make sure you cover all the steps to set up, If you have specific information that should not be included in a public readme (like your heroku link or links to your video) put them in a file called submission.txt and they will be omitted from the project if it is open sourced.
- Provide a quick video of your solution in action (feel free to annotate your video if you are not comfortable with spoken English or don’t like the sound of your own voice). Video may be private on youtube or added to the submission files.
- Please provide a list of files that were modified in submission.txt.