1
0
cucumber-js-demo/4outline/features/steps/concat.js

15 lines
362 B
JavaScript

import { Given, When, Then } from '@cucumber/cucumber'
import { expect } from 'chai'
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) {
expect(string).to.equal(this.concat)
})