/testing-practice

Making a repo to test out the basics of the Jest testing library

Primary LanguageJavaScript

testing-practice

Making a repo to test out the basics of the Jest testing library

Making tests using Jest:

Includes a "capitalize" function, which takes a string and returns it with the first character capitalized

Includes a "reverseString" function which returns a reversed string

Includes a "calculator" object that contains function for "add", "subtract", "divide", and "multiply"

Includes a "caesarCipher" function that takes a string and returns it with each character "shifted"

Includes an "analyzeArray" function that takes an array of numbers and returns an object with the following properties: average, min, max, and length