Skip to content

A collection of basic JavaScript programs with corresponding unit tests, created to practice and understand how to write and run unit test cases using a testing framework.

Notifications You must be signed in to change notification settings

saileshpulukuri/basic-unit_testcases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Unit Test Cases — JavaScript

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.


📌 Purpose

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.

🗂 Contents

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.

🛠 Tech Stack

  • Language: JavaScript
  • Testing Framework: Mocha
  • Package Manager: npm

🚀 Getting Started

1️⃣ Clone the Repository

-```bash git clone https://github.com/saileshpulukuri/basic-unit_testcases.git cd basic-unit_testcases

2️⃣ Install Dependencies

npm install

3️⃣ Run Tests

npm test

About

A collection of basic JavaScript programs with corresponding unit tests, created to practice and understand how to write and run unit test cases using a testing framework.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published