summaryrefslogtreecommitdiff
path: root/reuse/features/steps/reusable.js
diff options
context:
space:
mode:
Diffstat (limited to 'reuse/features/steps/reusable.js')
-rw-r--r--reuse/features/steps/reusable.js6
1 files changed, 1 insertions, 5 deletions
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
}