Skip to content

Commit

Permalink
Fix more typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tehnrd committed May 5, 2020
1 parent df0d80b commit 5a87e43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions index.ts
Expand Up @@ -98,7 +98,7 @@ class ServerlessCustomDomain {
}
} catch (err) {
this.logIfDebug(err, domain.givenDomainName);
throw new Error(`Error: Unable to craete domain ${domain.givenDomainName}`);
throw new Error(`Error: Unable to create domain ${domain.givenDomainName}`);
}
}));
}
Expand Down Expand Up @@ -238,7 +238,7 @@ class ServerlessCustomDomain {
this.route53 = new this.serverless.providers.aws.sdk.Route53(credentials);
this.cloudformation = new this.serverless.providers.aws.sdk.CloudFormation(credentials);

// Loop over the domain configurations and popluates the domains array with DomainConfigs
// Loop over the domain configurations and populate the domains array with DomainConfigs
this.domains = [];

// If the key of the item in config is an api type it is using per api type domain structure
Expand All @@ -248,7 +248,7 @@ class ServerlessCustomDomain {
this.serverless.service.custom.customDomain[configApiType].apiType = configApiType;
this.domains.push(new DomainConfig(this.serverless.service.custom.customDomain[configApiType]));
} else {
throw Error(`Error: Invalud API Type, ${configApiType}`);
throw Error(`Error: Invalid API Type, ${configApiType}`);
}
}
} else { // Default to single domain config
Expand All @@ -266,7 +266,7 @@ class ServerlessCustomDomain {
this.acm = new this.serverless.providers.aws.sdk.ACM(acmCredentials);
}

// Validate the domain configuraitons
// Validate the domain configurations
this.validateDomainConfigs();
}

Expand Down Expand Up @@ -309,7 +309,7 @@ class ServerlessCustomDomain {
return domain.certificateArn;
}

let certificateArn; // The arn of the choosen certificate
let certificateArn; // The arn of the selected certificate

let certificateName = domain.certificateName; // The certificate name

Expand Down
4 changes: 2 additions & 2 deletions test/unit-tests/index.test.ts
Expand Up @@ -337,8 +337,8 @@ describe("Custom Domain Plugin", () => {

plugin.addOutputs(dc);

const cfTemplat = plugin.serverless.service.provider.compiledCloudFormationTemplate.Outputs;
expect(cfTemplat).to.not.equal(undefined);
const cfTemplate = plugin.serverless.service.provider.compiledCloudFormationTemplate.Outputs;
expect(cfTemplate).to.not.equal(undefined);
});

it("(none) is added if basepath is an empty string", async () => {
Expand Down

0 comments on commit 5a87e43

Please sign in to comment.