Skip to content

Commit 301e23a

Browse files
committed
chore: remove unused temp code
1 parent 534e159 commit 301e23a

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

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

-34
Original file line numberDiff line numberDiff line change
@@ -399,38 +399,4 @@ describe('Function: makeIdempotent', () => {
399399
expect(saveSuccessSpy).toHaveBeenCalledTimes(1);
400400
expect(saveSuccessSpy).toHaveBeenCalledWith('456', '123456');
401401
});
402-
/* it('handles a cached execution', async () => {
403-
// Prepare
404-
const handler = makeIdempotent(
405-
async (_event: unknown, context: Context) => context.awsRequestId,
406-
{
407-
...mockIdempotencyOptions,
408-
config: new IdempotencyConfig({
409-
useLocalCache: true,
410-
}),
411-
}
412-
);
413-
const saveInProgressSpy = jest.spyOn(
414-
mockIdempotencyOptions.persistenceStore,
415-
'saveInProgress'
416-
);
417-
const saveSuccessSpy = jest.spyOn(
418-
mockIdempotencyOptions.persistenceStore,
419-
'saveSuccess'
420-
);
421-
422-
// Act
423-
const result = await handler(event, context);
424-
const resultTwo = await handler(event, context);
425-
426-
// Assess
427-
expect(result).toEqual(resultTwo);
428-
expect(saveInProgressSpy).toHaveBeenCalledTimes(1);
429-
expect(saveInProgressSpy).toHaveBeenCalledWith(
430-
event,
431-
remainingTImeInMillis
432-
);
433-
expect(saveSuccessSpy).toHaveBeenCalledTimes(1);
434-
expect(saveSuccessSpy).toHaveBeenCalledWith(event, context.awsRequestId);
435-
}); */
436402
});

0 commit comments

Comments
 (0)