diff options
| author | Eugen Wissner <belka@caraus.de> | 2018-11-25 05:58:09 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2018-11-25 05:58:09 +0100 |
| commit | 714245fcb0303249c14bd4737c1927103b106b0c (patch) | |
| tree | e4975737300240c0889c60dbaa76183731133ec4 /ts/features/steps/composition.ts | |
| parent | 15e5e413d9a49012202c46f8fde747c1593ec0f1 (diff) | |
| download | cucumber-js-demo-714245fcb0303249c14bd4737c1927103b106b0c.tar.gz | |
Add TypeScript example
Diffstat (limited to 'ts/features/steps/composition.ts')
| -rw-r--r-- | ts/features/steps/composition.ts | 10 |
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') +}); |
