/jestable-javascript

Practicing TDD in JavaScript using JEST testing framework.

Primary LanguageJavaScript

JESTable Javascript (TDD hands-on)

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.

Basic Tests

Tests cover simple functions such as:

  1. capitalize(string) takes a string and returns that string with the first character capitalized.

  2. reverseString(string) takes a string and returns it reversed.

  3. A calculator object that contains the basic operations: add, subtract, divide, and multiply.

  4. caeser(text) Caeser Cipher

  5. arrayAnalysis(arr) takes an array of numbers and returns an object with the following properties: average, min, max, and length.

Technologies

  • Javascript (ES6)
  • JEST (TDD)
  • NPM

Installation

Clone the repository to your local machine

$ git clone https://github.com/johnsonsirv/jestable-javascript.git

Usage

Open the terminal

$ cd jestable-javascript
$ npm run test

Contributor(s)

Victor Okeugo

How to contribute

  1. Fork it (https://github.com/johnsonsirv/jestable-javascript/fork)
  2. Create your feature branch (git checkout -b feature/[choose-a-name])
  3. Commit your changes (git commit -m 'What this commit will fix/add')
  4. Push to the branch (git push origin feature/[chosen name])
  5. Create a new Pull Request

You can also create issues

License

This project is licensed under the MIT License - see the LICENSE file for details