toll-calculator icon indicating copy to clipboard operation
toll-calculator copied to clipboard

Toll Fee calculation done in Node Js

Open karthick-krishnan opened this issue 3 years ago • 0 comments

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

Screen Shot 2022-03-07 at 2 58 00 AM

karthick-krishnan avatar Mar 06 '22 22:03 karthick-krishnan