-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cucumber): upgrade to latest version
- Loading branch information
Fabien Thouraud
committed
Jul 15, 2021
1 parent
3ebe10a
commit d778171
Showing
25 changed files
with
530 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
yarnPath: .yarn/releases/yarn-2.4.0.cjs | ||
yarnPath: .yarn/releases/yarn-2.4.2.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
'use strict' | ||
|
||
const { Given } = require('cucumber') | ||
const { Given } = require('@cucumber/cucumber') | ||
|
||
Given(/^(?:I )?define http mock from (.+)$/, function(fixture) {}) | ||
Given(/^(?:I )?define http mock from (.+)$/, function (fixture) {}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
'use strict' | ||
|
||
const querystring = require('querystring') | ||
const { Given, Then } = require('cucumber') | ||
const { Given, Then } = require('@cucumber/cucumber') | ||
const nock = require('nock') | ||
const { expect } = require('chai') | ||
|
||
Given(/^I mock http call to forward request body for path (.+)$/, function(path) { | ||
Given(/^I mock http call to forward request body for path (.+)$/, function (path) { | ||
nock('http://fake.io') | ||
.post(path) | ||
.reply(200, (uri, requestBody) => requestBody) | ||
}) | ||
|
||
Then(/^response should match url encoded snapshot (.+)$/, function(snapshotId) { | ||
Then(/^response should match url encoded snapshot (.+)$/, function (snapshotId) { | ||
const httpResponse = this.httpApiClient.getResponse() | ||
expect(httpResponse).to.not.be.empty | ||
return this.fixtures.load(snapshotId).then(snapshot => { | ||
return this.fixtures.load(snapshotId).then((snapshot) => { | ||
expect(httpResponse.body).to.equal(querystring.stringify(snapshot)) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.