Skip to content

Commit b786800

Browse files
committed
feat: rename allow_gre_traffic_across_zones
dependency: none Signed-off-by: jkalanda <[email protected]>
1 parent 144871a commit b786800

File tree

2 files changed

+253
-198
lines changed

2 files changed

+253
-198
lines changed

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

Lines changed: 11 additions & 12 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+
1721
// need to import the whole package to mock getAuthenticatorFromEnvironment
1822
const sdkCorePackage = require('ibm-cloud-sdk-core');
1923

2024
const { NoAuthAuthenticator, unitTestUtils } = sdkCorePackage;
21-
2225
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,7 +62,6 @@ getAuthenticatorMock.mockImplementation(() => new NoAuthAuthenticator());
6262
let requiredGlobals;
6363

6464
describe('TransitGatewayApisV1', () => {
65-
6665
beforeEach(() => {
6766
mock_createRequest();
6867
// these are changed when passed into the factory/constructor, so re-init
@@ -77,7 +76,7 @@ describe('TransitGatewayApisV1', () => {
7776
}
7877
getAuthenticatorMock.mockClear();
7978
});
80-
79+
8180
describe('the newInstance method', () => {
8281
test('should use defaults when options not provided', () => {
8382
const testInstance = TransitGatewayApisV1.newInstance(requiredGlobals);
@@ -223,9 +222,9 @@ describe('TransitGatewayApisV1', () => {
223222
beforeEach(() => {
224223
unmock_createRequest();
225224
const scope = nock(serviceUrl)
226-
.get(uri => uri.includes(path))
225+
.get((uri) => uri.includes(path))
227226
.reply(200, mockPagerResponse1)
228-
.get(uri => uri.includes(path))
227+
.get((uri) => uri.includes(path))
229228
.reply(200, mockPagerResponse2);
230229
});
231230

@@ -715,9 +714,9 @@ describe('TransitGatewayApisV1', () => {
715714
beforeEach(() => {
716715
unmock_createRequest();
717716
const scope = nock(serviceUrl)
718-
.get(uri => uri.includes(path))
717+
.get((uri) => uri.includes(path))
719718
.reply(200, mockPagerResponse1)
720-
.get(uri => uri.includes(path))
719+
.get((uri) => uri.includes(path))
721720
.reply(200, mockPagerResponse2);
722721
});
723722

@@ -861,9 +860,9 @@ describe('TransitGatewayApisV1', () => {
861860
beforeEach(() => {
862861
unmock_createRequest();
863862
const scope = nock(serviceUrl)
864-
.get(uri => uri.includes(path))
863+
.get((uri) => uri.includes(path))
865864
.reply(200, mockPagerResponse1)
866-
.get(uri => uri.includes(path))
865+
.get((uri) => uri.includes(path))
867866
.reply(200, mockPagerResponse2);
868867
});
869868

0 commit comments

Comments
 (0)