Skip to content

Commit

Permalink
AT-11105: Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rddimon committed Feb 6, 2024
1 parent 12ff22b commit b031caf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
22 changes: 10 additions & 12 deletions src/aws/api-gateway-v1-wrapper.ts
Expand Up @@ -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.
Expand All @@ -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}`
Expand Down
3 changes: 2 additions & 1 deletion test/integration-tests/debug/debug.test.ts
Expand Up @@ -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}`);
Expand Down

0 comments on commit b031caf

Please sign in to comment.