File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
packages/aws-durable-execution-sdk-js/src/handlers/step-handler Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 33 ExecutionContext ,
44 StepSemantics ,
55 OperationLifecycleState ,
6+ OperationSubType ,
67} from "../../types" ;
7- import { OperationStatus } from "@aws-sdk/client-lambda" ;
8+ import { OperationStatus , OperationType } from "@aws-sdk/client-lambda" ;
89import { Context } from "aws-lambda" ;
910import { createDefaultLogger } from "../../utils/logger/default-logger" ;
1011import { Checkpoint } from "../../utils/checkpoint/checkpoint-helper" ;
@@ -167,7 +168,15 @@ describe("Step Handler", () => {
167168 expect ( mockCheckpoint . markOperationState ) . toHaveBeenCalledWith (
168169 stepId ,
169170 OperationLifecycleState . COMPLETED ,
170- expect . any ( Object ) ,
171+ {
172+ metadata : {
173+ stepId,
174+ type : OperationType . STEP ,
175+ subType : OperationSubType . STEP ,
176+ name : "test-step" ,
177+ parentId : undefined ,
178+ } ,
179+ } ,
171180 ) ;
172181 } ) ;
173182
You can’t perform that action at this time.
0 commit comments