2024-12-19 23:54:35 +01:00
|
|
|
import { Given, When, Then } from '@cucumber/cucumber'
|
2018-11-10 20:06:38 +01:00
|
|
|
import { expect } from 'chai'
|
|
|
|
|
|
|
|
Given('the start value is {int}', function (int) {
|
|
|
|
this.calc = int
|
|
|
|
})
|
|
|
|
|
|
|
|
When('I add {int}', function (int) {
|
|
|
|
this.calc += int
|
|
|
|
})
|
|
|
|
|
|
|
|
Then('the result should be {int}', function (int) {
|
|
|
|
expect(this.calc).to.equal(int)
|
|
|
|
})
|