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

11 lines
301 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) {
this.language = language
});
Then("I don't get a warning about undefined steps", function () {
expect(this.language).to.equal('TypeScript')
});