Skip to content

Commit bb77da4

Browse files
committed
Fix test formatting
1 parent 65e968b commit bb77da4

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

packages/idempotency/tests/unit/IdempotencyHandler.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,6 @@ describe('Class IdempotencyHandler', () => {
260260

261261
// Assess
262262
expect(mockFunctionToMakeIdempotent).toBeCalled()
263-
264-
265263
})
266264

267265
it("raises an IdempotencyAlreadyInProgressError error when isReplay is false and there is an IN PROGRESS record", async ()=> {

packages/idempotency/tests/unit/makeIdempotent.test.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -599,17 +599,16 @@ describe('Function: makeIdempotent', () => {
599599
});
600600

601601
it("registers the LambdaContext when provided a durable context", async ()=> {
602-
602+
// Prepare
603603
const registerLambdaContextSpy = vi.spyOn(IdempotencyConfig.prototype, "registerLambdaContext")
604604
const fn = async (_event: any, _context: any) => { }
605605
const handler = makeIdempotent(fn, mockIdempotencyOptions)
606-
607606
const mockDurableContext = {step: vi.fn(), lambdaContext: context}
607+
608+
// Act
608609
await handler(event, mockDurableContext)
609610

611+
// Assess
610612
expect(registerLambdaContextSpy).toHaveBeenCalledOnce()
611-
612-
613-
614613
})
615614
});

0 commit comments

Comments
 (0)