Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tresor11/testing-practice-js

on this repository we explore some of the basics functionality of jest
https://github.com/tresor11/testing-practice-js

javascript jest tresor11

Last synced: 8 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# testing-practice-js

The purpose of this project was to do testing practice for functions using jest. This is part of the [Ordin projects](https://www.theodinproject.com/courses/javascript/lessons/testing-practice) from the [microverse](https://www.microverse.org/) 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](http://practicalcryptography.com/ciphers/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**

- Github: [@Tresor11](https://github.com/Tresor11)
- Twitter: [@twitterhandle](https://twitter.com/twitterhandle)
- Linkedin: [linkedin](https://linkedin.com/linkedinhandle)

👤 **Phemia**

- Github: [@ampaire](https://github.com/ampaire)
- Twitter: [@AmpaPhem](https://twitter.com/AmpaPhem)
- Linkedin: [linkedin](https://linkedin.com/ampaire-phemia)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the [issues page](https://github.com/Tresor11/testing-practice-js/issues).

## Show your support

Give a ⭐️ if you like this project!

## Acknowledgments
- [Ordin](https://www.theodinproject.com/courses/javascript/lessons/testing-practice)
-