From 48a1f3756b927098357107baf4009740f562520a Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 3 Jan 2019 06:11:13 +0100 Subject: reuse: Apply function with Ramda and Lodash --- reuse/features/steps/reusable.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'reuse/features/steps/reusable.js') diff --git a/reuse/features/steps/reusable.js b/reuse/features/steps/reusable.js index 07ac8c5..674756f 100644 --- a/reuse/features/steps/reusable.js +++ b/reuse/features/steps/reusable.js @@ -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 } -- cgit v1.2.3