summaryrefslogtreecommitdiff
path: root/ts/features/steps/composition.ts
blob: 3e9bf5545d4bcf0c0badb65a19bb53e48908cd17 (plain)
1
2
3
4
5
6
7
8
9
10
import { When, Then } from '@cucumber/cucumber';
import assert from 'node:assert/strict';

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 () {
  assert.equal(this.language, 'TypeScript');
});