2024-12-20 15:03:16 +01:00
|
|
|
import { When, Then } from '@cucumber/cucumber';
|
2018-11-25 05:58:09 +01:00
|
|
|
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
|
|
|
});
|