UNPKG

doubleshot

Version:

Run separated BDD outlines and content on top of mocha

19 lines (18 loc) 282 B
module.exports = { 'One': { before: '1' }, '1': { before: function () { this.sum = 1; } }, 'plus one': function () { this.sum += 1; }, 'equals two': function () { if (this.sum !== 2) { throw new Error(this.sum + ' !== 2'); } } };