This project is centered around Jest. It explores some in-built matchers to test some javascript behaviours and to demonstrate some TDD Concepts
This project was completed in line with standards provided by Microverse.
Tests cover simple functions such as:
-
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.
-
caeser(text)Caeser Cipher -
arrayAnalysis(arr)takes an array of numbers and returns an object with the following properties:average,min,max, andlength.
- Javascript (ES6)
- JEST (TDD)
- NPM
Clone the repository to your local machine
$ git clone https://github.com/johnsonsirv/jestable-javascript.gitOpen the terminal
$ cd jestable-javascript
$ npm run test- Github: @johnsonsirv
- Twitter: @vokeugo
- Email: okeugo.victor.c@gmail.com
- Fork it (https://github.com/johnsonsirv/jestable-javascript/fork)
- Create your feature branch (git checkout -b feature/[choose-a-name])
- Commit your changes (git commit -m 'What this commit will fix/add')
- Push to the branch (git push origin feature/[chosen name])
- Create a new Pull Request
You can also create issues
This project is licensed under the MIT License - see the LICENSE file for details