The purpose of this script:
Take JSON object of match results and create the league table after the final round of matches.
This script is unit tested with Jest. To install it on your machine, open a terminal and type:
npm install --save-dev jest
Type npm test to get the tests running.
npm test
- Document code/add comments where applicable
- Simplfy functions further to make more readable
- Add more unit tests for full coverage across the functions