Practicing TDD using Jest.
Write the following functions and write testing for them:
-
Capitalize(string) takes a string and returns that string with the first character capitalized.
-
ReverseString(string) takes a string and returns it reversed.
-
A calculator object that contains the basic operations: add, subtract, divide, and multiply.
-
Caesar Cipher.
-
Array Analysis. Write a function that takes an array of numbers and returns an object with the following properties: average, min, max, and length.
To start testing, go inside main folder where your files are and run jest foldername/test.js --watch
.
- Fork and/or download the repo.
- Run
npm install
(This command should install the Webpack 4 Tools) - Improve the code.
- Send a Pull Request.
Also, you can browse through more projects in my portfolio here
βWhat simple action could you take today to produce a new momentum toward success in your life?β Tony Robbins