@@ -380,9 +380,6 @@ describe("NHS notify lambda helper functions", () => {
380380 const result = await checkCooldownForUpdate ( logger , update , 900 )
381381
382382 expect ( sendSpy ) . toHaveBeenCalledWith ( expect . any ( GetCommand ) )
383- expect ( infoSpy ) . toHaveBeenCalledWith (
384- "No previous notification state found. Notification allowed."
385- )
386383 expect ( result ) . toBe ( true )
387384 } )
388385
@@ -395,10 +392,6 @@ describe("NHS notify lambda helper functions", () => {
395392 const update = constructPSUDataItemMessage ( ) . PSUDataItem
396393 const result = await checkCooldownForUpdate ( logger , update , 900 )
397394
398- expect ( infoSpy ) . toHaveBeenCalledWith (
399- "Cooldown period has passed. Notification allowed." ,
400- expect . objectContaining ( { secondsSince : expect . any ( Number ) } )
401- )
402395 expect ( result ) . toBe ( true )
403396 } )
404397
@@ -411,10 +404,6 @@ describe("NHS notify lambda helper functions", () => {
411404 const update = constructPSUDataItemMessage ( ) . PSUDataItem
412405 const result = await checkCooldownForUpdate ( logger , update , 900 )
413406
414- expect ( infoSpy ) . toHaveBeenCalledWith (
415- "Within cooldown period. Notification suppressed." ,
416- expect . objectContaining ( { secondsSince : expect . any ( Number ) } )
417- )
418407 expect ( result ) . toBe ( false )
419408 } )
420409
@@ -428,10 +417,6 @@ describe("NHS notify lambda helper functions", () => {
428417 const update = constructPSUDataItemMessage ( ) . PSUDataItem
429418 const result = await checkCooldownForUpdate ( logger , update , 60 )
430419
431- expect ( infoSpy ) . toHaveBeenCalledWith (
432- "Within cooldown period. Notification suppressed." ,
433- expect . objectContaining ( { secondsSince : expect . any ( Number ) } )
434- )
435420 expect ( result ) . toBe ( false )
436421 } )
437422
@@ -441,10 +426,6 @@ describe("NHS notify lambda helper functions", () => {
441426
442427 const update = constructPSUDataItemMessage ( ) . PSUDataItem
443428 await expect ( checkCooldownForUpdate ( logger , update ) ) . rejects . toThrow ( "DDB failure" )
444- expect ( errorSpy ) . toHaveBeenCalledWith (
445- "Error checking cooldown state" ,
446- expect . objectContaining ( { error : awsErr } )
447- )
448429 } )
449430
450431 it ( "does nothing when passed an empty array" , async ( ) => {
0 commit comments