Skip to content

Instantly share code, notes, and snippets.

@marcusoftnet
Last active August 29, 2015 13:55
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 marcusoftnet/8767179 to your computer and use it in GitHub Desktop.
Save marcusoftnet/8767179 to your computer and use it in GitHub Desktop.
the done parameter in mocha
var should = require("should");
describe("Configuration setup", function () {
it("loads local configuration default", function (done) {
var config = require("../config")();
config.mode.should.equal("local");
done(); // tell mocha that we're done and it can process next test
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment