1
0
cucumber-js-demo/2obj/features/steps/concat.js

15 lines
352 B
JavaScript
Raw Normal View History

2018-11-10 20:06:38 +01:00
import { Given, When, Then } from '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)
})