The purpose of this project was to do testing practice for functions using jest. This is part of the Ordin projects from the microverse curriculum.
The requirement for this project was to write tests for the following functions, and then make the tests pass!
- 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 comfortably use this project, prior knowledge of the following is ideal
- Javascript
- Eslint
- Jest
- ES6
Run
git clone https://github.com/Tresor11/testing-practice-js.git
to clone this project to your local machine and then run.
npm install
to install all the dependencies and modules that were used for this project.
Run
npm run tests
to run the tests on your local machine
👤 Tresor
- Github: @Tresor11
- Twitter: @twitterhandle
- Linkedin: linkedin
👤 Phemia
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!