summaryrefslogtreecommitdiff
path: root/ts/features/steps/composition.ts
blob: 9a75e2ac29bae2adf7dafa4869f04292d0cb5090 (plain)
1
2
3
4
5
6
7
8
9
10
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');
});