doubleshot
Version:
Run separated BDD outlines and content on top of mocha
22 lines (21 loc) • 427 B
JavaScript
module.exports = {
'One': [{
before: function () {
this.sum = 1;
},
after: [function () {
console.log('chainObjectAlias afterAll1');
}]
}, 'alias1'],
'alias1': function () {
console.log('chainObjectAlias beforeAll1');
},
'plus one': function () {
this.sum += 1;
},
'equals two': function () {
if (this.sum !== 2) {
throw new Error(this.sum + ' !== 2');
}
}
};