From 738f4f2bdb7228b8f2f9bd74979adf361cf1b293 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 20 Dec 2024 15:03:16 +0100 Subject: Switch to ESM --- type-parser/features/steps/custom-type.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'type-parser/features') 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 }) -- cgit v1.2.3