-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Currently we have a test called setup test which actually tests addChallenge function
Each function we add to the request object can be made up of:
- Query building functions that return a string
- Helper functions shaping the data that comes back from the DB
- Being added to the request object
Each of these are points that can be tested, in order to keep the functions easy to follow, I want to keep the function names matching the test folders.
tests directory
| - addChallenge
| - query.test.js
| - helper.test.js
| - endpoint.test.js
| - getChallenge
| - query.test.js
| - helper.test.js
| - endpoint.test.js