From 2a32a90722c3a06c2bd97cd68d1a6687b37b80ce Mon Sep 17 00:00:00 2001 From: andyu17 Date: Tue, 14 Jan 2025 23:26:05 +0900 Subject: [PATCH] docs(iotevents-alpha): fix typos --- packages/@aws-cdk/aws-iotevents-alpha/lib/state.ts | 4 ++-- .../@aws-cdk/aws-iotevents-alpha/test/detector-model.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/@aws-cdk/aws-iotevents-alpha/lib/state.ts b/packages/@aws-cdk/aws-iotevents-alpha/lib/state.ts index 571b7bf36a1f0..d9d1d722d559c 100644 --- a/packages/@aws-cdk/aws-iotevents-alpha/lib/state.ts +++ b/packages/@aws-cdk/aws-iotevents-alpha/lib/state.ts @@ -51,7 +51,7 @@ interface TransitionEvent { readonly actions?: IAction[]; /** - * The next state to transit to. When the resuld of condition expression is `true`, the state is transited. + * The next state to transit to. When the result of condition expression is `true`, the state is transited. */ readonly nextState: State; } @@ -127,7 +127,7 @@ export class State { } /** - * Collect states in dependency gragh that constructed by state transitions, + * Collect states in dependency graph that constructed by state transitions, * and return the JSONs of the states. * This function is called recursively and collect the states. * diff --git a/packages/@aws-cdk/aws-iotevents-alpha/test/detector-model.test.ts b/packages/@aws-cdk/aws-iotevents-alpha/test/detector-model.test.ts index f6681c818ab62..0f49278b86874 100644 --- a/packages/@aws-cdk/aws-iotevents-alpha/test/detector-model.test.ts +++ b/packages/@aws-cdk/aws-iotevents-alpha/test/detector-model.test.ts @@ -237,7 +237,7 @@ test('can set an action to multiple detector models', () => { }), }); - // THEN creates two detector model resouces and two iam policy resources + // THEN creates two detector model resources and two iam policy resources Template.fromStack(stack).resourceCountIs('AWS::IoTEvents::DetectorModel', 2); Template.fromStack(stack).resourceCountIs('AWS::IAM::Policy', 2); @@ -469,7 +469,7 @@ test('cannot create without event', () => { }).toThrow('Detector Model must have at least one Input with a condition'); }); -test('cannot create transitions that transit to duprecated target state', () => { +test('cannot create transitions that transit to deprecated target state', () => { const firstState = new iotevents.State({ stateName: 'firstState', onEnter: [{