1
0
Files
cucumber-js-demo/3bg/features/steps/concat.js

15 lines
369 B
JavaScript

import { Given, When, Then } from '@cucumber/cucumber'
import assert from 'node:assert/strict'
Given('the start value is {string}', function (string) {
this.concat = string
})
When('I concatenate {string}', function (string) {
this.concat += ' ' + string
})
Then('the result should be {string}', function (string) {
assert.equal(string, this.concat)
})