Skip to content

Instantly share code, notes, and snippets.

@avescodes
Created April 29, 2012 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avescodes/2552913 to your computer and use it in GitHub Desktop.
Save avescodes/2552913 to your computer and use it in GitHub Desktop.
Sample npm mocha test
var mocha = require('mocha');
var expect = require('chai').expect;
describe("My project", function () {
it("should know its version", function () {
var myProject = require('../index');
expect(myProject.version).to.not.equal(undefined);
expect(myProject.version).to.equal('0.0.0');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment