ameerthehacker / node-calculator

A simple app for automated tests using jest
MIT License
1 stars 18 forks source link

Update app.js, calculator.js and tests. #41

Closed TingHongTeoh closed 4 years ago

TingHongTeoh commented 4 years ago
  1. Added abs() in app.js and in tests. abs() was in calculator.js but not used in app.js.
  2. Updated fact() in calculator.js because negative value can't do factorial.
  3. Updated strings in app.js for easier reading.
  4. Added test for abs() in tests. Negative value should throw error and positive value should run.
ameerthehacker commented 4 years ago

thanks for the contribution @TingHongTeoh