From 714245fcb0303249c14bd4737c1927103b106b0c Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 25 Nov 2018 05:58:09 +0100 Subject: Add TypeScript example --- ts/features/steps/composition.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ts/features/steps/composition.ts (limited to 'ts/features/steps/composition.ts') diff --git a/ts/features/steps/composition.ts b/ts/features/steps/composition.ts new file mode 100644 index 0000000..f1ee009 --- /dev/null +++ b/ts/features/steps/composition.ts @@ -0,0 +1,10 @@ +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') +}); -- cgit v1.2.3