2022-03-28 18:24:51 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`Newsletters API Can add a newsletter 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"newsletters": Array [
|
|
|
|
Object {
|
|
|
|
"description": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"name": "My test newsletter",
|
|
|
|
"recipient_filter": "",
|
|
|
|
"sender_email": "test@example.com",
|
|
|
|
"sender_name": "Test",
|
|
|
|
"sender_reply_to": "test@example.com",
|
|
|
|
"sort_order": 0,
|
|
|
|
"status": "active",
|
|
|
|
"subscribe_on_signup": true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Newsletters API Can add a newsletter 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",
|
2022-04-07 12:50:20 +03:00
|
|
|
"content-length": "272",
|
2022-03-28 18:24:51 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"location": Any<String>,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Newsletters API Can add a newsletter 3: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"newsletters": Array [
|
|
|
|
Object {
|
|
|
|
"description": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"name": "My test newsletter",
|
|
|
|
"recipient_filter": "",
|
|
|
|
"sender_email": "test@example.com",
|
|
|
|
"sender_name": "Test",
|
|
|
|
"sender_reply_to": "test@example.com",
|
|
|
|
"sort_order": 0,
|
|
|
|
"status": "active",
|
|
|
|
"subscribe_on_signup": true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Newsletters API Can add a newsletter 4: [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",
|
2022-04-07 12:50:20 +03:00
|
|
|
"content-length": "360",
|
2022-03-28 18:24:51 +03:00
|
|
|
"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[`Newsletters API Can browse newsletters 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"newsletters": Array [
|
|
|
|
Object {
|
|
|
|
"description": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"name": "My test newsletter",
|
|
|
|
"recipient_filter": "",
|
|
|
|
"sender_email": "test@example.com",
|
|
|
|
"sender_name": "Test",
|
|
|
|
"sender_reply_to": "test@example.com",
|
|
|
|
"sort_order": 0,
|
|
|
|
"status": "active",
|
|
|
|
"subscribe_on_signup": true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Newsletters API Can browse newsletters 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",
|
2022-04-07 12:50:20 +03:00
|
|
|
"content-length": "360",
|
2022-03-28 18:24:51 +03:00
|
|
|
"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[`Newsletters API Can edit newsletters 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 1,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"newsletters": Array [
|
|
|
|
Object {
|
|
|
|
"description": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"name": "My test newsletter",
|
|
|
|
"recipient_filter": "",
|
|
|
|
"sender_email": "test@example.com",
|
|
|
|
"sender_name": "Test",
|
|
|
|
"sender_reply_to": "test@example.com",
|
|
|
|
"sort_order": 0,
|
|
|
|
"status": "active",
|
|
|
|
"subscribe_on_signup": true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Newsletters API Can edit newsletters 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",
|
2022-04-07 12:50:20 +03:00
|
|
|
"content-length": "359",
|
2022-03-28 18:24:51 +03:00
|
|
|
"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[`Newsletters API Can edit newsletters 3: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"newsletters": Array [
|
|
|
|
Object {
|
|
|
|
"description": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"name": "Updated newsletter name",
|
|
|
|
"recipient_filter": "",
|
|
|
|
"sender_email": "test@example.com",
|
|
|
|
"sender_name": "Test",
|
|
|
|
"sender_reply_to": "test@example.com",
|
|
|
|
"sort_order": 0,
|
|
|
|
"status": "active",
|
|
|
|
"subscribe_on_signup": true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Newsletters API Can edit newsletters 4: [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",
|
2022-04-07 12:50:20 +03:00
|
|
|
"content-length": "277",
|
2022-03-28 18:24:51 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|