Skip to content

BaseMax/MochaChaiJsTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 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

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors