Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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 || true

sayHello()
√ sayHello should return hello
√ sayHello should return type string

concat()
√ concat should return type string
√ concat should return type string

addNumbers()
√ addNumbers should be above 5
√ addNumbers should return type number
√ addNumbers should return type number

7 passing (240ms)
```