Loading repository data…
Loading repository data…
BaseMax / repository
In this repository, You will see how to setup the Mocha unit testing framework along with Chai which is an assertion library. (JavaScript)
In this repository, You will see how to setup the Mocha unit testing framework along with Chai which is an assertion library.
$ npm run test
Output:
> mochachaijstest@1.0.0 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)