Skip to content

Instantly share code, notes, and snippets.

@mmalecki
Created August 25, 2011 16:29
Show Gist options
  • Save mmalecki/1171085 to your computer and use it in GitHub Desktop.
Save mmalecki/1171085 to your computer and use it in GitHub Desktop.
module.exports = {
setUpGroup: function (callback) {
console.log('0');
callback();
}
setUp: function (callback) {
this.foo = 'bar';
console.log('1');
callback();
},
test1: function (test) {
console.log('2');
test.equals(this.foo, 'bar');
test.done();
}
tearDown: function (callback) {
// clean up
console.log('3');
callback();
},
tearDownGroup: function (callback) {
console.log('4');
callback();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment