Last active
August 29, 2015 13:55
-
-
Save marcusoftnet/8767179 to your computer and use it in GitHub Desktop.
the done parameter in mocha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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