File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -698,26 +698,6 @@ describe('notify', () => {
698698 } )
699699 } )
700700
701- it ( 'should throw if confirmation email has no submission guidance set' , async ( ) => {
702- jest . mocked ( getFormDefinition ) . mockResolvedValueOnce ( baseDefinition )
703- jest . mocked ( getFormMetadata ) . mockResolvedValueOnce (
704- buildMetaData ( {
705- submissionGuidance : undefined
706- } )
707- )
708- const formAdapterMessageWithUserEmail = structuredClone (
709- formAdapterSubmissionMessage
710- )
711- formAdapterMessageWithUserEmail . meta . custom = {
712- userConfirmationEmail : 'my-email@test.com'
713- }
714- await expect ( ( ) =>
715- sendNotifyEmails ( formAdapterMessageWithUserEmail )
716- ) . rejects . toThrow (
717- 'Missing submission guidance for form id 68a8b0449ab460290c28940a'
718- )
719- } )
720-
721701 it ( 'confirmation email should handle and throw errors' , async ( ) => {
722702 const err = new Error ( 'Upstream failure' )
723703 jest . mocked ( getFormDefinition ) . mockResolvedValueOnce ( baseDefinition )
You can’t perform that action at this time.
0 commit comments