Skip to content

Commit 8bd0a71

Browse files
committed
Removed redundant test
1 parent 1347f82 commit 8bd0a71

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

src/service/notify.test.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)