Skip to content

Commit

Permalink
Add http for cors
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpaulos committed Oct 14, 2020
1 parent 611dd04 commit b937c41
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/cucumber/steps/steps.js
Expand Up @@ -1458,16 +1458,16 @@ module.exports = function getSteps(options) {
if (expectedBody != null) {
expectedMockResponse = expectedBody;
}
this.v2Client = new algosdk.Algodv2('', mockAlgodResponderHost, mockAlgodResponderPort, {});
this.indexerClient = new algosdk.Indexer('', mockAlgodResponderHost, mockAlgodResponderPort, {});
this.v2Client = new algosdk.Algodv2('', 'http://' + mockAlgodResponderHost, mockAlgodResponderPort, {});
this.indexerClient = new algosdk.Indexer('', 'http://' + mockAlgodResponderHost, mockAlgodResponderPort, {});
});

Given('mock http responses in {string} loaded from {string} with status {int}.', function (expectedBody, status) {
if (expectedBody != null) {
expectedMockResponse = expectedBody;
}
this.v2Client = new algosdk.Algodv2('', mockAlgodResponderHost, mockAlgodResponderPort, {});
this.indexerClient = new algosdk.Indexer('', mockAlgodResponderHost, mockAlgodResponderPort, {});
this.v2Client = new algosdk.Algodv2('', 'http://' + mockAlgodResponderHost, mockAlgodResponderPort, {});
this.indexerClient = new algosdk.Indexer('', 'http://' + mockAlgodResponderHost, mockAlgodResponderPort, {});
this.expectedMockResponseCode = status;
});

Expand Down Expand Up @@ -1509,8 +1509,8 @@ module.exports = function getSteps(options) {
});

Given('mock server recording request paths', function () {
this.v2Client = new algosdk.Algodv2('', mockAlgodPathRecorderHost, mockAlgodPathRecorderPort, {});
this.indexerClient = new algosdk.Indexer('', mockIndexerPathRecorderHost, mockIndexerPathRecorderPort, {});
this.v2Client = new algosdk.Algodv2('', 'http://' + mockAlgodPathRecorderHost, mockAlgodPathRecorderPort, {});
this.indexerClient = new algosdk.Indexer('', 'http://' + mockIndexerPathRecorderHost, mockIndexerPathRecorderPort, {});
});

Then('expect the path used to be {string}', function (algodSeenRequests, indexerSeenRequests, expectedRequestPath) {
Expand Down

0 comments on commit b937c41

Please sign in to comment.