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