Skip to content

Instantly share code, notes, and snippets.

@domq
Last active August 29, 2015 14:05
Show Gist options
  • Save domq/83f858a1b9b11d0e7853 to your computer and use it in GitHub Desktop.
Save domq/83f858a1b9b11d0e7853 to your computer and use it in GitHub Desktop.
it("test 1", function() {
process.nextTick(function() {
throw new Error("Too bad");
});
});
it("test 2", function() {});
it("test 3", function(done) {
process.stdout.write("This actually runs twice.\n");
process.nextTick(done.bind({},"OUCH"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment