From b031caf2da7fc48249c4576bc8cbec252c28dafc Mon Sep 17 00:00:00 2001 From: rddimon Date: Tue, 6 Feb 2024 15:53:00 +0200 Subject: [PATCH] AT-11105: Fix lint https://amplify-education.atlassian.net/browse/AT-11105 --- src/aws/api-gateway-v1-wrapper.ts | 22 ++++++++++------------ test/integration-tests/debug/debug.test.ts | 3 ++- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/aws/api-gateway-v1-wrapper.ts b/src/aws/api-gateway-v1-wrapper.ts index 11b5450e..b43d49f6 100644 --- a/src/aws/api-gateway-v1-wrapper.ts +++ b/src/aws/api-gateway-v1-wrapper.ts @@ -140,9 +140,8 @@ class APIGatewayV1Wrapper extends APIGatewayBase { }) ); return items.map((item) => { - return new ApiGatewayMap(item.restApiId, item.basePath, item.stage, null); - } - ); + return new ApiGatewayMap(item.restApiId, item.basePath, item.stage, null); + }); } catch (err) { throw new Error( `V1 - Make sure the '${domain.givenDomainName}' exists. @@ -156,15 +155,14 @@ class APIGatewayV1Wrapper extends APIGatewayBase { to '${domain.basePath}' for '${domain.givenDomainName}'`); try { await this.apiGateway.send(new UpdateBasePathMappingCommand({ - basePath: domain.apiMapping.basePath, - domainName: domain.givenDomainName, - patchOperations: [{ - op: "replace", - path: "/basePath", - value: domain.basePath - }] - } - )); + basePath: domain.apiMapping.basePath, + domainName: domain.givenDomainName, + patchOperations: [{ + op: "replace", + path: "/basePath", + value: domain.basePath + }] + })); } catch (err) { throw new Error( `V1 - Unable to update base path mapping for '${domain.givenDomainName}':\n${err.message}` diff --git a/test/integration-tests/debug/debug.test.ts b/test/integration-tests/debug/debug.test.ts index 75460106..e9031ba8 100644 --- a/test/integration-tests/debug/debug.test.ts +++ b/test/integration-tests/debug/debug.test.ts @@ -15,7 +15,8 @@ describe("Integration Tests", function () { try { await utilities.createTempDir(TEMP_DIR, configFolder); - // await utilities.slsCreateDomain(TEMP_DIR, true); + await utilities.slsCreateDomain(TEMP_DIR, true); + await utilities.slsDeploy(TEMP_DIR, true); await utilities.slsDeploy(TEMP_DIR, true); } finally { await exec(`rm -rf ${TEMP_DIR}`);