issues
search
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
Added abs() in app.js and in tests. abs() was in calculator.js but not used in app.js.
Updated fact() in calculator.js because negative value can't do factorial.
Updated strings in app.js for easier reading.
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