FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

JsObjects/JavaScript/UnitTests/MochaHello at master · charliecalvert/JsObjects · GitHub

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Mocha Hello

To run:

  • To install chai: npm install
  • If mocha not installed then: npm install -g mocha
  • mocha test

The code looks like this:

var chai = require('chai');
var expect = chai.expect;

describe("Unit Test Demo", function () {

        it("proves true is true", function () {
            expect(true).to.equal(true);
        });

});

Back | FazBrowse Home | New Git URL