@cucumber/compatibility-kit
Advanced tools
Comparing version 6.0.0 to 7.0.0
@@ -22,3 +22,3 @@ # Feature: Cheese | ||
```gherkin | ||
Given there are 4 apples in Mary's basket | ||
Given there are 24 apples in Mary's basket | ||
``` | ||
@@ -25,0 +25,0 @@ * When we use a data table and attach something and then <what> |
@@ -1,17 +0,25 @@ | ||
import { Given, When, Then, DataTable } from '@cucumber/fake-cucumber' | ||
import assert from 'assert' | ||
import { Given, When, Then } from '@cucumber/fake-cucumber' | ||
Given('some TypeScript code:', function (dataTable: DataTable) { | ||
Given('some TypeScript code:', function (dataTable: string[][]) { | ||
assert(dataTable) | ||
}) | ||
Given('some classic Gherkin:', function (gherkin: string) { | ||
assert(gherkin) | ||
}) | ||
When('we use a data table and attach something and then {word}', function (word: string, dataTable: DataTable) { | ||
this.log('We are logging some plain text') | ||
if(word === 'fail') { | ||
throw new Error('You asked me to fail') | ||
When( | ||
'we use a data table and attach something and then {word}', | ||
function (word: string, dataTable: string[][]) { | ||
assert(dataTable) | ||
this.log(`We are logging some plain text (${word})`) | ||
if (word === 'fail') { | ||
throw new Error('You asked me to fail') | ||
} | ||
} | ||
}) | ||
) | ||
Then('this might or might not run', function () { | ||
// no-op | ||
}) |
{ | ||
"name": "@cucumber/compatibility-kit", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "Test data used to validate a Cucumber implementation", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2132090
182