Skip to content

Instantly share code, notes, and snippets.

@mamaz
Created December 29, 2015 10:00
Show Gist options
  • Save mamaz/57f597c2c7cc016ed441 to your computer and use it in GitHub Desktop.
Save mamaz/57f597c2c7cc016ed441 to your computer and use it in GitHub Desktop.
Just a mocha template
var assert = require('assert');
var async = require('asyncawait/async');
var await = require('asyncawait/await');
describe('hooks', function() {
before(function() {
// runs before all tests in this block
});
beforeEach(function() {
// runs before each test in this block
});
afterEach(function() {
// runs after each test in this block
});
it('should be able to run anything that matters', function(){
});
afterEach(function() {
// runs after each test in this block
});
after(function() {
// runs after all tests in this block
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment