From b2d4548c247568ce6f247c1eb3feb9e9d1c81474 Mon Sep 17 00:00:00 2001 From: Shumail Mohyuddin Date: Fri, 2 Apr 2021 01:44:01 +0200 Subject: [PATCH] chore(sqs): fix typo (#13883) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/@aws-cdk/aws-sqs/lib/validate-props.ts | 2 +- packages/@aws-cdk/aws-sqs/test/test.sqs.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@aws-cdk/aws-sqs/lib/validate-props.ts b/packages/@aws-cdk/aws-sqs/lib/validate-props.ts index 8a1204e21f858..b988e6e7fdf9a 100644 --- a/packages/@aws-cdk/aws-sqs/lib/validate-props.ts +++ b/packages/@aws-cdk/aws-sqs/lib/validate-props.ts @@ -14,5 +14,5 @@ function validateRange(label: string, value: number | undefined, minValue: numbe if (value === undefined || Token.isUnresolved(value)) { return; } const unitSuffix = unit ? ` ${unit}` : ''; if (value < minValue) { throw new Error(`${label} must be ${minValue}${unitSuffix} or more, but ${value} was provided`); } - if (value > maxValue) { throw new Error(`${label} must be ${maxValue}${unitSuffix} of less, but ${value} was provided`); } + if (value > maxValue) { throw new Error(`${label} must be ${maxValue}${unitSuffix} or less, but ${value} was provided`); } } diff --git a/packages/@aws-cdk/aws-sqs/test/test.sqs.ts b/packages/@aws-cdk/aws-sqs/test/test.sqs.ts index ea0233578c5a6..21266a4ce03db 100644 --- a/packages/@aws-cdk/aws-sqs/test/test.sqs.ts +++ b/packages/@aws-cdk/aws-sqs/test/test.sqs.ts @@ -75,7 +75,7 @@ export = { test.throws(() => new sqs.Queue(stack, 'AnotherQueue', { retentionPeriod: Duration.days(15), - }), /message retention period must be 1209600 seconds of less/); + }), /message retention period must be 1209600 seconds or less/); test.done(); },