Skip to content

Repository files navigation

testing-practice-js

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.

Project requirements

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.

Prerequisites

To comfortably use this project, prior knowledge of the following is ideal

  • Javascript
  • Eslint
  • Jest
  • ES6

Setup

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.

Running tests

Run

npm run tests

to run the tests on your local machine

👤 Tresor

👤 Phemia

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

About

on this repository we explore some of the basics functionality of jest

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages