UNPKG
washington.dsl
Version:
latest (2.0.0)
2.0.0
2.0.0-rc.5
2.0.0-rc.4
Small DSL to make building Washington test even easier
washington.dsl
/
index.js
9 lines
(6 loc)
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
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