Skip to content

In this repository, You will see how to setup the Mocha unit testing framework along with Chai which is an assertion library. (JavaScript)

License

Notifications You must be signed in to change notification settings

BaseMax/MochaChaiJsTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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

About

In this repository, You will see how to setup the Mocha unit testing framework along with Chai which is an assertion library. (JavaScript)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published