This repository contains simple JavaScript programs along with their corresponding unit tests.
It was created as a practice project to learn how to write, structure, and run unit test cases effectively.
The aim of this repository is to:
- Practice writing unit tests for small JavaScript functions.
- Understand test case structure, assertions, and test execution.
- Build confidence in test-driven development (TDD) concepts.
| File | Description |
|---|---|
appp.js |
Example JavaScript function (sample logic). |
appp.test.js |
Unit tests for appp.js. |
array.js |
Functions for array operations. |
string.js |
Functions for string operations. |
subtract.js |
Subtraction function. |
task.js |
Miscellaneous example function. |
task.test.js |
Unit tests for task.js. |
package.json |
Project configuration and dependencies. |
- Language: JavaScript
- Testing Framework: Mocha
- Package Manager: npm
-```bash git clone https://github.com/saileshpulukuri/basic-unit_testcases.git cd basic-unit_testcases
npm install
npm test