Toll Fee calculation done in Node Js
Hi Team,
This is Karthick Krishnan. I have done the Toll fee calculation in Node Js. Please do check it out. Hopefully we can have a chat soon regarding this. I have made some small changes in the logic of the calculation and made changes in getting the toll fee for each hour dynamically. I have added Unit test cases. I believe i have covered all the scenarios. I firmly believe that when a functionality is unit tested thoroughly with full coverage results then only its production ready. I have made my part as a production ready code please do check and let me know if i have to make any changes. I am listing the commands to run and the screenshot of the unit cases results coverage report below.
The movie name in the GIF is Hackers :)
Installation Requirements node js npm jest
Commands to run the test cases: npm install npm run test