UNPKG
yadda
Version:
latest (2.2.0)
2.2.0
2.1.1
2.1.0
2.0.1
2.0.0
1.5.0
1.4.0
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.0
0.22.1
0.22.0
0.21.0
0.20.0
0.19.0
0.18.0
0.17.10
0.17.9
0.17.8
0.17.7
0.17.6
0.17.5
0.17.4
0.17.3
0.17.2
0.17.1
0.17.0
0.16.3
0.16.2
0.16.1
0.16.0
0.15.5
0.15.4
0.15.3
0.15.2
0.15.1
0.15.0
0.14.1
0.14.0
0.13.1
0.13.0
0.12.1
0.12.0
0.11.7
0.11.6
0.11.5
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.14
0.10.13
0.10.12
0.10.11
0.10.10
0.10.9
0.10.8
0.10.7
0.10.6
0.10.5
0.10.4
0.10.3
0.10.1
0.10.0
0.9.11
0.9.10
0.9.9
0.9.8
0.9.7
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.2
0.7.1
0.7.0
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.2
0.5.1
0.5.0
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
A true BDD framework for JavaScript
acuminous.gitbooks.io/yadda-user-guide
acuminous/yadda
yadda
/
examples
/
nightwatch
/
tests
/
steps
/
dictionary.js
5 lines
(3 loc)
•
211 B
JavaScript
View Raw
1
2
3
4
5
var
Yadda
=
require
(
'yadda'
);
var
converters =
require
(
'../converters'
);
module
.
exports
=
new
Yadda
.
Dictionary
().
define
(
'count'
,
/(\d+)/
,
Yadda
.
converters
.
integer
).
define
(
'filters'
,
/(.*)/
, converters.
filter
);