summaryrefslogtreecommitdiff
path: root/type-parser/features/steps
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2024-12-20 15:03:16 +0100
committerEugen Wissner <belka@caraus.de>2024-12-20 15:03:16 +0100
commit738f4f2bdb7228b8f2f9bd74979adf361cf1b293 (patch)
treead138a085dddc0d42c53044aa70c3e4606ced9c4 /type-parser/features/steps
parent53e4c5dba6ede90f0e23b192350b3cc833834523 (diff)
downloadcucumber-js-demo-738f4f2bdb7228b8f2f9bd74979adf361cf1b293.tar.gz
Switch to ESM
Diffstat (limited to 'type-parser/features/steps')
-rw-r--r--type-parser/features/steps/custom-type.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/type-parser/features/steps/custom-type.js b/type-parser/features/steps/custom-type.js
index a200a9c..28f44aa 100644
--- a/type-parser/features/steps/custom-type.js
+++ b/type-parser/features/steps/custom-type.js
@@ -1,5 +1,5 @@
-const { Before, Given, When, Then, defineParameterType } = require('cucumber')
-const { expect } = require('chai')
+import { Before, Given, When, Then, defineParameterType } from '@cucumber/cucumber'
+import { expect } from 'chai'
defineParameterType({
name: 'tobe',
@@ -39,7 +39,7 @@ Before(function () {
this.count = 0
})
-Given(/(a regular expression|it) matches (this|that) pattern/, function (_, _) {
+Given(/(a regular expression|it) matches (this|that) pattern/, function (_x, _y) {
++this.count
})