mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
Readded matchMetadataSnapshot
refs bac2f4d4d4 (diff-473dc0c49e80df6c07569ed5730445ebdaaa8138fc819182548727db50eb55aa)
This commit is contained in:
parent
fd69ab181d
commit
514c8917c0
@ -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`] = `
|
||||
"
|
||||
<!doctype html>
|
||||
|
@ -726,6 +726,7 @@ describe('Newsletters API', function () {
|
||||
|
||||
emailMockReceiver
|
||||
.assertSentEmailCount(1)
|
||||
.matchMetadataSnapshot()
|
||||
.matchHTMLSnapshot([{
|
||||
pattern: queryStringToken('verifyEmail'),
|
||||
replacement: 'verifyEmail=REPLACED_TOKEN'
|
||||
|
Loading…
Reference in New Issue
Block a user