mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
527cb01680
refs: https://github.com/TryGhost/Toolbox/issues/158 - This is a reference suite - it shows how snapshot testing can be used on a larger suite
937 lines
36 KiB
Text
937 lines
36 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Members API Add should fail when comped flag is passed in but Stripe is not enabled 1: [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": "376",
|
|
"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[`Members API Add should fail when comped flag is passed in but Stripe is not enabled 2: [body] 1`] = `
|
|
Object {
|
|
"errors": Array [
|
|
Object {
|
|
"code": null,
|
|
"context": "Missing Stripe connection. Attempting to import members with Stripe data when there is no Stripe account connected.",
|
|
"details": null,
|
|
"help": "You need to connect to Stripe to import Stripe customers. ",
|
|
"id": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
"message": "Validation error, cannot save member.",
|
|
"property": "comped",
|
|
"type": "ValidationError",
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Add should fail when passing incorrect email_type query parameter 1: [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": "249",
|
|
"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[`Members API Add should fail when passing incorrect email_type query parameter 2: [body] 1`] = `
|
|
Object {
|
|
"errors": Array [
|
|
Object {
|
|
"code": null,
|
|
"context": "Validation (AllowedValues) failed for email_type",
|
|
"details": null,
|
|
"help": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
"message": "Validation error, cannot save member.",
|
|
"property": null,
|
|
"type": "ValidationError",
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Can add and send a signup confirmation email 1: [body] 1`] = `
|
|
Object {
|
|
"members": Array [
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "member_getting_confirmation@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": null,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Array [],
|
|
"name": "Send Me Confirmation",
|
|
"note": null,
|
|
"products": Array [],
|
|
"status": "free",
|
|
"subscribed": true,
|
|
"subscriptions": Array [],
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Can add and send a signup confirmation email 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": "457",
|
|
"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[`Members API Can add and send a signup confirmation email 3: [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",
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
"vary": "Origin",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Can delete a member without cancelling Stripe Subscription 1: [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": "438",
|
|
"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[`Members API Can delete a member without cancelling Stripe Subscription 2: [body] 1`] = `
|
|
Object {
|
|
"members": Array [
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "Member2Delete@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": null,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Array [],
|
|
"name": "Member 2 Delete",
|
|
"note": null,
|
|
"products": Array [],
|
|
"status": "free",
|
|
"subscribed": true,
|
|
"subscriptions": Array [],
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Can delete a member without cancelling Stripe Subscription 3: [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",
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
"vary": "Origin",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Can delete a member without cancelling Stripe Subscription 4: [body] 1`] = `Object {}`;
|
|
|
|
exports[`Members API Can order by email_open_rate 1: [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": "7008",
|
|
"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[`Members API Can order by email_open_rate 2: [body] 1`] = `
|
|
Object {
|
|
"members": Array [
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "paid@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": 80,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Egon Spengler",
|
|
"note": null,
|
|
"status": "paid",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "member2@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": 50,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": null,
|
|
"note": null,
|
|
"status": "free",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "member1@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": null,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Mr Egg",
|
|
"note": null,
|
|
"status": "free",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "trialing@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": null,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Ray Stantz",
|
|
"note": null,
|
|
"status": "paid",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "comped@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": null,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Vinz Clortho",
|
|
"note": null,
|
|
"status": "paid",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "vip@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": null,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Winston Zeddemore",
|
|
"note": null,
|
|
"status": "free",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "vip-paid@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": null,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Peter Venkman",
|
|
"note": null,
|
|
"status": "paid",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "with-product@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": null,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Dana Barrett",
|
|
"note": null,
|
|
"status": "paid",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
],
|
|
"meta": Object {
|
|
"pagination": Object {
|
|
"limit": 15,
|
|
"next": null,
|
|
"page": 1,
|
|
"pages": 1,
|
|
"prev": null,
|
|
"total": 8,
|
|
},
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Can order by email_open_rate 3: [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": "7008",
|
|
"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[`Members API Can order by email_open_rate 4: [body] 1`] = `
|
|
Object {
|
|
"members": Array [
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "member2@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": 50,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": null,
|
|
"note": null,
|
|
"status": "free",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "paid@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": 80,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Egon Spengler",
|
|
"note": null,
|
|
"status": "paid",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "member1@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": null,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Mr Egg",
|
|
"note": null,
|
|
"status": "free",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "trialing@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": null,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Ray Stantz",
|
|
"note": null,
|
|
"status": "paid",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "comped@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": null,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Vinz Clortho",
|
|
"note": null,
|
|
"status": "paid",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "vip@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": null,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Winston Zeddemore",
|
|
"note": null,
|
|
"status": "free",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "vip-paid@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": null,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Peter Venkman",
|
|
"note": null,
|
|
"status": "paid",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "with-product@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": null,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Dana Barrett",
|
|
"note": null,
|
|
"status": "paid",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
],
|
|
"meta": Object {
|
|
"pagination": Object {
|
|
"limit": 15,
|
|
"next": null,
|
|
"page": 1,
|
|
"pages": 1,
|
|
"prev": null,
|
|
"total": 8,
|
|
},
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Can search by case-insensitive email 1: [body] 1`] = `
|
|
Object {
|
|
"members": Array [
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "member2@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": 50,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Array [],
|
|
"name": null,
|
|
"note": null,
|
|
"status": "free",
|
|
"subscribed": true,
|
|
"subscriptions": Array [],
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
],
|
|
"meta": Object {
|
|
"pagination": Object {
|
|
"limit": 15,
|
|
"next": null,
|
|
"page": 1,
|
|
"pages": 1,
|
|
"prev": null,
|
|
"total": 1,
|
|
},
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Can search by case-insensitive email 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": "491",
|
|
"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[`Members API Can update a member with subscription included, change name to "Updated name" 1: [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": "1234",
|
|
"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[`Members API Can update a member with subscription included, change name to "Updated name" 2: [body] 1`] = `
|
|
Object {
|
|
"members": Array [
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "paid@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": 80,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Updated name",
|
|
"note": null,
|
|
"products": Array [],
|
|
"status": "paid",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Can update a member with subscription included, change name to "Updated name" 3: [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": "1234",
|
|
"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[`Members API Can update a member with subscription included, change name to "Updated name" 4: [body] 1`] = `
|
|
Object {
|
|
"members": Array [
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "paid@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": 80,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Updated name",
|
|
"note": null,
|
|
"products": Array [],
|
|
"status": "paid",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Can update a member with subscription included, change name to updated name 1: [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": "1296",
|
|
"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[`Members API Can update a member with subscription included, change name to updated name 2: [body] 1`] = `
|
|
Object {
|
|
"members": Array [
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "paid@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": 80,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Egon Spengler",
|
|
"note": null,
|
|
"status": "paid",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
],
|
|
"meta": Object {
|
|
"pagination": Object {
|
|
"limit": 15,
|
|
"next": null,
|
|
"page": 1,
|
|
"pages": 1,
|
|
"prev": null,
|
|
"total": 1,
|
|
},
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Can update a member with subscription included, change name to updated name 3: [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": "1234",
|
|
"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[`Members API Can update a member with subscription included, change name to updated name 4: [body] 1`] = `
|
|
Object {
|
|
"members": Array [
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "paid@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": 80,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Updated name",
|
|
"note": null,
|
|
"products": Array [],
|
|
"status": "paid",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Errors when fetching stats with unknown days param value 1: [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": "248",
|
|
"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[`Members API Errors when fetching stats with unknown days param value 2: [body] 1`] = `
|
|
Object {
|
|
"errors": Array [
|
|
Object {
|
|
"code": null,
|
|
"context": "Validation (matches) failed for id undefined.id",
|
|
"details": null,
|
|
"help": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
"message": "Validation error, cannot read member.",
|
|
"property": null,
|
|
"type": "ValidationError",
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Sarch by case-insensitive name egg receives member with name Mr Egg 1: [body] 1`] = `
|
|
Object {
|
|
"members": Array [
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "member1@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": null,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Mr Egg",
|
|
"note": null,
|
|
"status": "free",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
],
|
|
"meta": Object {
|
|
"pagination": Object {
|
|
"limit": 15,
|
|
"next": null,
|
|
"page": 1,
|
|
"pages": 1,
|
|
"prev": null,
|
|
"total": 1,
|
|
},
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Sarch by case-insensitive name egg receives member with name Mr Egg 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": "644",
|
|
"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[`Members API Sarch for paid members retrieves member with email paid@test.com 1: [body] 1`] = `
|
|
Object {
|
|
"members": Array [
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "paid@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": 80,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": "Egon Spengler",
|
|
"note": null,
|
|
"status": "paid",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
],
|
|
"meta": Object {
|
|
"pagination": Object {
|
|
"limit": 15,
|
|
"next": null,
|
|
"page": 1,
|
|
"pages": 1,
|
|
"prev": null,
|
|
"total": 1,
|
|
},
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Sarch for paid members retrieves member with email paid@test.com 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": "1296",
|
|
"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[`Members API Search by case-insensitive email MEMBER2 receives member with email member2@test.com 1: [body] 1`] = `
|
|
Object {
|
|
"members": Array [
|
|
Object {
|
|
"avatar_image": null,
|
|
"comped": false,
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"email": "member2@test.com",
|
|
"email_count": 0,
|
|
"email_open_rate": 50,
|
|
"email_opened_count": 0,
|
|
"geolocation": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"labels": Any<Array>,
|
|
"name": null,
|
|
"note": null,
|
|
"status": "free",
|
|
"subscribed": true,
|
|
"subscriptions": Any<Array>,
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
|
|
"uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
|
|
},
|
|
],
|
|
"meta": Object {
|
|
"pagination": Object {
|
|
"limit": 15,
|
|
"next": null,
|
|
"page": 1,
|
|
"pages": 1,
|
|
"prev": null,
|
|
"total": 1,
|
|
},
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`Members API Search by case-insensitive email MEMBER2 receives member with email member2@test.com 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": "491",
|
|
"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[`Members API Search for non existing member returns empty result set 1: [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": "102",
|
|
"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[`Members API Search for non existing member returns empty result set 2: [body] 1`] = `
|
|
Object {
|
|
"members": Array [],
|
|
"meta": Object {
|
|
"pagination": Object {
|
|
"limit": 15,
|
|
"next": null,
|
|
"page": 1,
|
|
"pages": 1,
|
|
"prev": null,
|
|
"total": 0,
|
|
},
|
|
},
|
|
}
|
|
`;
|