UNPKG

washington.dsl

Version:

Small DSL to make building Washington test even easier

9 lines (6 loc) 258 B
const suite = (name, ...suite) => suite.map(x => ({...x, description: `${name}: ${x.description}`})) const example = (description, test, shouldEqual) => ({ description, test, shouldEqual }) module.exports.example = example module.exports.suite = suite