@@ -377,9 +377,6 @@ describe("NHS notify lambda helper functions", () => {
377377 const result = await checkCooldownForUpdate ( logger , update , 900 )
378378
379379 expect ( sendSpy ) . toHaveBeenCalledWith ( expect . any ( GetCommand ) )
380- expect ( infoSpy ) . toHaveBeenCalledWith (
381- "No previous notification state found. Notification allowed."
382- )
383380 expect ( result ) . toBe ( true )
384381 } )
385382
@@ -392,10 +389,6 @@ describe("NHS notify lambda helper functions", () => {
392389 const update = constructPSUDataItemMessage ( ) . PSUDataItem
393390 const result = await checkCooldownForUpdate ( logger , update , 900 )
394391
395- expect ( infoSpy ) . toHaveBeenCalledWith (
396- "Cooldown period has passed. Notification allowed." ,
397- expect . objectContaining ( { secondsSince : expect . any ( Number ) } )
398- )
399392 expect ( result ) . toBe ( true )
400393 } )
401394
@@ -408,10 +401,6 @@ describe("NHS notify lambda helper functions", () => {
408401 const update = constructPSUDataItemMessage ( ) . PSUDataItem
409402 const result = await checkCooldownForUpdate ( logger , update , 900 )
410403
411- expect ( infoSpy ) . toHaveBeenCalledWith (
412- "Within cooldown period. Notification suppressed." ,
413- expect . objectContaining ( { secondsSince : expect . any ( Number ) } )
414- )
415404 expect ( result ) . toBe ( false )
416405 } )
417406
@@ -425,10 +414,6 @@ describe("NHS notify lambda helper functions", () => {
425414 const update = constructPSUDataItemMessage ( ) . PSUDataItem
426415 const result = await checkCooldownForUpdate ( logger , update , 60 )
427416
428- expect ( infoSpy ) . toHaveBeenCalledWith (
429- "Within cooldown period. Notification suppressed." ,
430- expect . objectContaining ( { secondsSince : expect . any ( Number ) } )
431- )
432417 expect ( result ) . toBe ( false )
433418 } )
434419
@@ -438,10 +423,6 @@ describe("NHS notify lambda helper functions", () => {
438423
439424 const update = constructPSUDataItemMessage ( ) . PSUDataItem
440425 await expect ( checkCooldownForUpdate ( logger , update ) ) . rejects . toThrow ( "DDB failure" )
441- expect ( errorSpy ) . toHaveBeenCalledWith (
442- "Error checking cooldown state" ,
443- expect . objectContaining ( { error : awsErr } )
444- )
445426 } )
446427
447428 it ( "does nothing when passed an empty array" , async ( ) => {
0 commit comments