Lab-01: TDD
Spencer Hirata
Appends string argument to 'hello '
Adds two numbers and returns the sum
Subtracts two numbers and returns the difference
Multiplies two numbers and returns the product
Divides two numbers and returns the quotient
####Dependencies
- eslint
- jest
node index.js
-
Running the tests on the arithmetic and greet modules with
npm run test
in the main folder-
Arithmetic -Add
- Valid number => valid number return
- Everything other than a number => returns null -Subtract
- Valid number => valid number return
- Everything other than a number => returns null -Multiply
- Valid number => valid number return
- Everything other than a number => returns null -Divide
- Valid number => valid number return
- Everything other than a number => returns null
-
Greet -Function
- Valid string => returns string with 'hello ' at the beginning
- Invalid input => returns null
-