File tree Expand file tree Collapse file tree
lambdas/supplier-allocator/src/handler/__tests__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -575,8 +575,7 @@ describe("createSupplierAllocatorHandler", () => {
575575 const result = await handler ( evt , { } as any , { } as any ) ;
576576 if ( ! result ) throw new Error ( "expected BatchResponse, got void" ) ;
577577 expect ( result . batchItemFailures ) . toHaveLength ( 0 ) ;
578- expect ( ( mockedDeps . logger . error as jest . Mock ) . mock . calls ) . toHaveLength ( 1 ) ;
579- expect ( ( mockedDeps . logger . error as jest . Mock ) . mock . calls [ 0 ] [ 0 ] ) . toEqual (
578+ expect ( ( mockedDeps . logger . info as jest . Mock ) . mock . calls [ 1 ] [ 0 ] ) . toEqual (
580579 expect . objectContaining ( {
581580 description : "Error fetching supplier from config" ,
582581 err : configError ,
@@ -655,8 +654,7 @@ describe("createSupplierAllocatorHandler", () => {
655654 if ( ! result ) throw new Error ( "expected BatchResponse, got void" ) ;
656655
657656 expect ( result . batchItemFailures ) . toHaveLength ( 0 ) ;
658- expect ( ( mockedDeps . logger . error as jest . Mock ) . mock . calls ) . toHaveLength ( 1 ) ;
659- expect ( ( mockedDeps . logger . error as jest . Mock ) . mock . calls [ 0 ] [ 0 ] ) . toEqual (
657+ expect ( ( mockedDeps . logger . info as jest . Mock ) . mock . calls [ 1 ] [ 0 ] ) . toEqual (
660658 expect . objectContaining ( {
661659 description : "Error fetching supplier from config" ,
662660 variantId : "lv1" ,
You can’t perform that action at this time.
0 commit comments