summaryrefslogtreecommitdiff
path: root/ts/features/steps/composition.ts
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2018-11-25 05:58:09 +0100
committerEugen Wissner <belka@caraus.de>2018-11-25 05:58:09 +0100
commit714245fcb0303249c14bd4737c1927103b106b0c (patch)
treee4975737300240c0889c60dbaa76183731133ec4 /ts/features/steps/composition.ts
parent15e5e413d9a49012202c46f8fde747c1593ec0f1 (diff)
downloadcucumber-js-demo-714245fcb0303249c14bd4737c1927103b106b0c.tar.gz
Add TypeScript example
Diffstat (limited to 'ts/features/steps/composition.ts')
-rw-r--r--ts/features/steps/composition.ts10
1 files changed, 10 insertions, 0 deletions
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')
+});