From 0fee99b473c17210a156d74263227cdf3274d253 Mon Sep 17 00:00:00 2001 From: guangwu Date: Wed, 20 Mar 2024 07:59:38 +0800 Subject: [PATCH] chore: typo fixes (#29475) ### Issue # (if applicable) Closes #. ### Reason for this change ### Description of changes ### Description of how you validated changes ### Checklist - [ ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/aws-cdk/lib/commands/migrate.ts | 2 +- packages/cdk-assets/test/private/docker-credentials.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/aws-cdk/lib/commands/migrate.ts b/packages/aws-cdk/lib/commands/migrate.ts index 8a3b462877755..cac2efb513122 100644 --- a/packages/aws-cdk/lib/commands/migrate.ts +++ b/packages/aws-cdk/lib/commands/migrate.ts @@ -830,7 +830,7 @@ export class CfnTemplateGeneratorProvider { }).promise(); if (createTemplateOutput.GeneratedTemplateId === undefined) { - throw new Error('CreateGeneratedTemplate failed to retrun an Arn.'); + throw new Error('CreateGeneratedTemplate failed to return an Arn.'); } return createTemplateOutput; } diff --git a/packages/cdk-assets/test/private/docker-credentials.test.ts b/packages/cdk-assets/test/private/docker-credentials.test.ts index c4c3f45ce9edf..c7e6957f9bc66 100644 --- a/packages/cdk-assets/test/private/docker-credentials.test.ts +++ b/packages/cdk-assets/test/private/docker-credentials.test.ts @@ -104,7 +104,7 @@ describe('fetchDockerLoginCredentials', () => { }); describe('SecretsManager', () => { - test('returns the credentials sucessfully if configured correctly - domain', async () => { + test('returns the credentials successfully if configured correctly - domain', async () => { mockSecretWithSecretString({ username: 'secretUser', secret: 'secretPass' }); const creds = await fetchDockerLoginCredentials(aws, config, 'secret.example.com');