Skip to content

ruanyf/mocha-demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo is for my article "A Mocha tutorial of Examples" (in Chinese).

"Mocha is a feature-rich JavaScript test framework running on Node.js and the browser, making asynchronous testing simple and fun."

-- Mochajs.org

How to use

First, clone the repo.

$ git clone https://github.com/ruanyf/mocha-demos.git

Then, install the dependencies locally and Mocha globally.

$ cd mocha-demos
$ npm install
$ npm install --global mocha

Enter the demo01 subdirectory.

$ mocha add.test.js

Now, play with the other examples under the repo's demo* directories.

Index

License

MIT

About

a collection of simple demos of Mocha

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published