Skip to content

Instantly share code, notes, and snippets.

@ilkka
Created March 5, 2017 17:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilkka/02fc0c3c29750106e2cb28ba8ec3029f to your computer and use it in GitHub Desktop.
Save ilkka/02fc0c3c29750106e2cb28ba8ec3029f to your computer and use it in GitHub Desktop.
Default mocha config, all files go in `./test/`
describe("dummy", function () {
before(function() {
console.log("dummy before");
});
it("is a dummy", function() {
console.log("dummy test");
});
});
before(function() {
console.log("global before");
});
after(function() {
console.log("global after");
});
describe("other", function () {
before(function() {
console.log("other before");
});
it.only("is a other", function() {
console.log("other test");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment