UNPKG

doubleshot

Version:

Run separated BDD outlines and content on top of mocha

23 lines (22 loc) 424 B
module.exports = { 'One': { before: function () { this.sum = 1; }, after: [function () { console.log('local afterAll1'); }, 'alias1'] }, 'alias1': 'alias2', 'alias2': function () { console.log('local afterAll2'); }, 'plus one': function () { this.sum += 1; }, 'equals two': function () { if (this.sum !== 2) { throw new Error(this.sum + ' !== 2'); } } };