1
0

reuse: Apply function with Ramda and Lodash

This commit is contained in:
2019-01-03 06:11:13 +01:00
parent 54fcfda40a
commit 48a1f3756b
7 changed files with 78 additions and 29 deletions

View File

@@ -1,10 +1,6 @@
import { Before, Given, Then } from 'cucumber'
import { expect } from 'chai'
Before(function () {
this.names = []
})
function step (name) {
this.names.push(name)
}
@@ -13,7 +9,7 @@ function decorator (f, ...args) {
if (args.length > 0) {
return function () {
f.call(this, args[0])
}
}
} else {
return f
}