2022-03-01 11:38:48 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`Tiers Content API Can request tiers 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"meta": Object {
|
|
|
|
"pagination": Object {
|
|
|
|
"limit": 15,
|
|
|
|
"next": null,
|
|
|
|
"page": 1,
|
|
|
|
"pages": 1,
|
|
|
|
"prev": null,
|
|
|
|
"total": 2,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"tiers": Array [
|
|
|
|
Object {
|
|
|
|
"active": true,
|
|
|
|
"benefits": null,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
|
|
|
"description": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"name": "Free",
|
|
|
|
"slug": "free",
|
|
|
|
"stripe_prices": null,
|
|
|
|
"type": "free",
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
2022-03-04 14:07:38 +03:00
|
|
|
"visibility": "none",
|
2022-03-01 11:38:48 +03:00
|
|
|
"welcome_page_url": "/welcome-free",
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"active": true,
|
|
|
|
"benefits": null,
|
|
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
|
|
|
"description": null,
|
|
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
"name": "Default Product",
|
|
|
|
"slug": "default-product",
|
|
|
|
"stripe_prices": null,
|
|
|
|
"type": "paid",
|
|
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
2022-03-04 14:07:38 +03:00
|
|
|
"visibility": "none",
|
2022-03-01 11:38:48 +03:00
|
|
|
"welcome_page_url": "/welcome-paid",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Tiers Content API Can request tiers 1: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "*",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
|
|
"content-length": "643",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Tiers Content API Can request tiers 2: [headers] 1`] = `
|
|
|
|
Object {
|
|
|
|
"access-control-allow-origin": "*",
|
|
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
2022-03-04 14:07:38 +03:00
|
|
|
"content-length": "683",
|
2022-03-01 11:38:48 +03:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|