summaryrefslogtreecommitdiff
path: root/ts/features
diff options
context:
space:
mode:
Diffstat (limited to 'ts/features')
-rw-r--r--ts/features/composition.feature5
-rw-r--r--ts/features/steps/composition.ts10
2 files changed, 15 insertions, 0 deletions
diff --git a/ts/features/composition.feature b/ts/features/composition.feature
new file mode 100644
index 0000000..fdae9c4
--- /dev/null
+++ b/ts/features/composition.feature
@@ -0,0 +1,5 @@
+Feature: TypeScript step definitions
+
+ Scenario:
+ When the step definitions are written in TypeScript
+ Then I don't get a warning about undefined steps
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')
+});