15 lines
369 B
JavaScript
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)
|
|
})
|