mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
15da07f324
refs: https://github.com/TryGhost/Team/issues/1446 - changed mail API tests to use the new e2e test framework - added the missing retry test - which has the wrong response format :( mail
49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Mail API Can send a test mail 1: [body] 1`] = `
|
|
Object {
|
|
"message": "sent",
|
|
}
|
|
`;
|
|
|
|
exports[`Mail API Can send a test mail 2: [headers] 1`] = `
|
|
Object {
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
"content-length": "18",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
"vary": "Origin, Accept-Encoding",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|
|
|
|
exports[`Mail API Can send mail 1: [body] 1`] = `
|
|
Object {
|
|
"mail": Array [
|
|
Object {
|
|
"message": Object {
|
|
"html": "<p>This</p>",
|
|
"subject": "testemail",
|
|
"to": "joe@example.com",
|
|
},
|
|
"status": Object {
|
|
"message": "sent",
|
|
},
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Mail API Can send mail 2: [headers] 1`] = `
|
|
Object {
|
|
"access-control-allow-origin": "http://127.0.0.1:2369",
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
"content-length": "118",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
"vary": "Origin, Accept-Encoding",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|