Readded matchMetadataSnapshot

refs bac2f4d4d4 (diff-473dc0c49e80df6c07569ed5730445ebdaaa8138fc819182548727db50eb55aa)
This commit is contained in:
Simon Backx 2023-05-03 14:14:10 +02:00
parent fd69ab181d
commit 514c8917c0
2 changed files with 10 additions and 0 deletions

View File

@ -546,6 +546,15 @@ exports[`Newsletters API Can add a newsletter - with custom sender_email and sub
" "
`; `;
exports[`Newsletters API Can add a newsletter - with custom sender_email and subscribe existing members 3: [metadata 1] 1`] = `
Object {
"forceTextContent": true,
"from": "noreply@example.com",
"subject": "Verify email address",
"to": "test@example.com",
}
`;
exports[`Newsletters API Can add a newsletter - with custom sender_email and subscribe existing members 4: [html 1] 1`] = ` exports[`Newsletters API Can add a newsletter - with custom sender_email and subscribe existing members 4: [html 1] 1`] = `
" "
<!doctype html> <!doctype html>

View File

@ -726,6 +726,7 @@ describe('Newsletters API', function () {
emailMockReceiver emailMockReceiver
.assertSentEmailCount(1) .assertSentEmailCount(1)
.matchMetadataSnapshot()
.matchHTMLSnapshot([{ .matchHTMLSnapshot([{
pattern: queryStringToken('verifyEmail'), pattern: queryStringToken('verifyEmail'),
replacement: 'verifyEmail=REPLACED_TOKEN' replacement: 'verifyEmail=REPLACED_TOKEN'