1
0
cucumber-js-demo/ts/features/steps/composition.ts
2024-12-20 15:03:16 +01:00

11 lines
313 B
TypeScript

import { When, Then } from '@cucumber/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');
});