Testing Practice
Source code: https://github.com/gofhilman/testing-practice
This project contains a collection of utility functions implemented using Test-Driven Development (TDD). Each function is thoroughly tested to ensure correctness and reliability.
Features
- capitalize(string): Capitalizes the first letter of a string.
- reverseString(string): Reverses the given string.
- calculator: An object with methods for basic arithmetic operations: add(a, b), subtract(a, b), divide(a, b), and multiply(a, b).
- caesarCipher(string, shiftFactor): Encodes a string using the Caesar cipher technique, preserving case and punctuation.
- analyzeArray(array): Analyzes an array and returns an object with the average, minimum, maximum, and length of the array.
Tech stack
- jest: A JavaScript testing framework used for writing and running unit tests with ease and flair.
- babel: A JavaScript compiler that transforms modern code into backwards-compatible versions for diverse environments.