Skip to content

Commit 70e8d8e

Browse files
committed
feat: rename allow_gre_traffic_across_zones
dependency: none Signed-off-by: jkalanda <[email protected]>
1 parent a6dd671 commit 70e8d8e

File tree

2 files changed

+198
-253
lines changed

2 files changed

+198
-253
lines changed

test/unit/transit-gateway-apis.v1.test.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
* limitations under the License.
1515
*/
1616

17-
/* eslint-disable no-await-in-loop */
18-
19-
const nock = require('nock');
20-
2117
// need to import the whole package to mock getAuthenticatorFromEnvironment
2218
const sdkCorePackage = require('ibm-cloud-sdk-core');
2319

2420
const { NoAuthAuthenticator, unitTestUtils } = sdkCorePackage;
21+
2522
const TransitGatewayApisV1 = require('../../dist/transit-gateway-apis/v1');
23+
const nock = require('nock');
24+
25+
/* eslint-disable no-await-in-loop */
2626

2727
const {
2828
getOptions,
@@ -62,6 +62,7 @@ getAuthenticatorMock.mockImplementation(() => new NoAuthAuthenticator());
6262
let requiredGlobals;
6363

6464
describe('TransitGatewayApisV1', () => {
65+
6566
beforeEach(() => {
6667
mock_createRequest();
6768
// these are changed when passed into the factory/constructor, so re-init
@@ -76,7 +77,7 @@ describe('TransitGatewayApisV1', () => {
7677
}
7778
getAuthenticatorMock.mockClear();
7879
});
79-
80+
8081
describe('the newInstance method', () => {
8182
test('should use defaults when options not provided', () => {
8283
const testInstance = TransitGatewayApisV1.newInstance(requiredGlobals);
@@ -222,9 +223,9 @@ describe('TransitGatewayApisV1', () => {
222223
beforeEach(() => {
223224
unmock_createRequest();
224225
const scope = nock(serviceUrl)
225-
.get((uri) => uri.includes(path))
226+
.get(uri => uri.includes(path))
226227
.reply(200, mockPagerResponse1)
227-
.get((uri) => uri.includes(path))
228+
.get(uri => uri.includes(path))
228229
.reply(200, mockPagerResponse2);
229230
});
230231

@@ -714,9 +715,9 @@ describe('TransitGatewayApisV1', () => {
714715
beforeEach(() => {
715716
unmock_createRequest();
716717
const scope = nock(serviceUrl)
717-
.get((uri) => uri.includes(path))
718+
.get(uri => uri.includes(path))
718719
.reply(200, mockPagerResponse1)
719-
.get((uri) => uri.includes(path))
720+
.get(uri => uri.includes(path))
720721
.reply(200, mockPagerResponse2);
721722
});
722723

@@ -860,9 +861,9 @@ describe('TransitGatewayApisV1', () => {
860861
beforeEach(() => {
861862
unmock_createRequest();
862863
const scope = nock(serviceUrl)
863-
.get((uri) => uri.includes(path))
864+
.get(uri => uri.includes(path))
864865
.reply(200, mockPagerResponse1)
865-
.get((uri) => uri.includes(path))
866+
.get(uri => uri.includes(path))
866867
.reply(200, mockPagerResponse2);
867868
});
868869

0 commit comments

Comments
 (0)