TAAFT
Free mode
100% free
Freemium
Free Trial
Deals

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)

1 0 Language: JavaScript License: GPL-3.0 Updated: 1mo ago

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

$ 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)
0 AIs selected
Clear selection
#
Name
Task