File tree 1 file changed +0
-34
lines changed
packages/idempotency/tests/unit
1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -399,38 +399,4 @@ describe('Function: makeIdempotent', () => {
399
399
expect ( saveSuccessSpy ) . toHaveBeenCalledTimes ( 1 ) ;
400
400
expect ( saveSuccessSpy ) . toHaveBeenCalledWith ( '456' , '123456' ) ;
401
401
} ) ;
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
- }); */
436
402
} ) ;
You can’t perform that action at this time.
0 commit comments