Do a quick written code review of the existing code.
- What is your overall impression on the code quality?
- What would you look at addressing first? How would you approach that?
Refactor the code as needed.
- Refactor the controller to reduce complexity and improve readability and maintainability
- Feel free to write mocks/stubs where needed
- Add jsdoc comments to the module exports as needed to document the API
- Write unit tests for the new code
- Can be psudocode / empty method definitions if your refactored code isn't runnable - we're more interested in what you would test and how
Send the code review, refactored code and resume to task@gymismo.com 🙂