https://github.com/aldoignatachandra/javascript-simpleunittesting
Simple Unit Testing Using Mocha And Chai
https://github.com/aldoignatachandra/javascript-simpleunittesting
javascript mocha-chai unittesting
Last synced: 5 months ago
JSON representation
Simple Unit Testing Using Mocha And Chai
- Host: GitHub
- URL: https://github.com/aldoignatachandra/javascript-simpleunittesting
- Owner: aldoignatachandra
- Created: 2020-01-30T11:38:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-02-18T01:29:02.000Z (over 1 year ago)
- Last Synced: 2025-10-31T08:52:56.862Z (8 months ago)
- Topics: javascript, mocha-chai, unittesting
- Language: JavaScript
- Size: 172 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple Unit Testing
( Javascript )
This repository contains unit testing in javscript using mocha and chai in a simple way to understand about unit testing. This repository contains unit testing use for two different testing, using express (endpoint server) & pure javascript without express
## Requirments
- **yarn** v1.17+
- **NodeJS** v8+
## Features
#### Folder Server (With Express)
1. Unit Testing End Point '/' (Check String Response)
2. Unit Testing End Point '/user' (Check Member In Array)
3. Unit Testing End Point '/users' (Check Member In Array of Object)
#### Folder Utils (Without Express)
1. Unit Test Add Function (Two Number)
2. Unit Test Async Add Function (Two Number)
3. Unit Test Square Function (One Number)
4. Unit Test Async Square Function (One Number)
## Installation
for ( Local Version ) :
1. Clone or download this repository
2. Install the dependencies by running `yarn install`
3. Make sure you have global installation nodemon in your computer, if not you can install in your project using `yarn add nodemon`
4. Start the code using `yarn test-watching`
## License
[ISC](https://en.wikipedia.org/wiki/ISC_license "ISC")