mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
c6617459a5
- We have an existing pattern for using `visibility: public` instead of `visible: true|false` - We no-op the existing migration and roll forward so that we don't have to manually revert db changes
71 lines
2.2 KiB
Plaintext
71 lines
2.2 KiB
Plaintext
// 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\\}/,
|
|
"visibility": "none",
|
|
"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\\}/,
|
|
"visibility": "none",
|
|
"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",
|
|
"content-length": "683",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
"vary": "Accept-Encoding",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|