1
0
cucumber-js-demo/ts/features/steps/composition.ts

11 lines
303 B
TypeScript
Raw Normal View History

2018-11-25 05:58:09 +01:00
import { When, Then } from 'cucumber';
import { expect } from 'chai';
When('the step definitions are written in {word}', function (language: string) {
2019-01-03 06:12:27 +01:00
this.language = language;
2018-11-25 05:58:09 +01:00
});
Then("I don't get a warning about undefined steps", function () {
2019-01-03 06:12:27 +01:00
expect(this.language).to.equal('TypeScript');
2018-11-25 05:58:09 +01:00
});