diff options
Diffstat (limited to 'type-parser/features/steps/custom-type.js')
| -rw-r--r-- | type-parser/features/steps/custom-type.js | 6 |
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 }) |
