Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/basemax/mochachaijstest
In this repository, You will see how to setup the Mocha unit testing framework along with Chai which is an assertion library. (JavaScript)
https://github.com/basemax/mochachaijstest
chai chai-js chai-test javascript js mocha test test-automation testing testing-library testing-tools tests
Last synced: about 23 hours ago
JSON representation
In this repository, You will see how to setup the Mocha unit testing framework along with Chai which is an assertion library. (JavaScript)
- Host: GitHub
- URL: https://github.com/basemax/mochachaijstest
- Owner: BaseMax
- License: gpl-3.0
- Created: 2022-07-31T18:07:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-20T17:36:24.000Z (8 months ago)
- Last Synced: 2025-02-04T07:15:40.036Z (6 days ago)
- Topics: chai, chai-js, chai-test, javascript, js, mocha, test, test-automation, testing, testing-library, testing-tools, tests
- Language: JavaScript
- Homepage:
- Size: 60.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mocha & Chai Js Test
In this repository, You will see how to setup the Mocha unit testing framework along with Chai which is an assertion library.
### Using
```sh
$ npm run test
```**Output:**
```
> [email protected] test
> mocha || truesayHello()
√ sayHello should return hello
√ sayHello should return type stringconcat()
√ concat should return type string
√ concat should return type stringaddNumbers()
√ addNumbers should be above 5
√ addNumbers should return type number
√ addNumbers should return type number7 passing (240ms)
```