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