mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
d9e6dfe97e
refs https://github.com/TryGhost/Team/issues/1575 - Updates the admin-api-schema to reflect new data structure - Updates members-api to allow Portal to use new data structure - Data is only mapped at the serialised level to avoid changing the underlying implementation - Ensure only one version of domain-events present in yarn.lock
59 lines
1.8 KiB
Text
59 lines
1.8 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Tiers Content API Can request only active 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": Array [],
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
|
"description": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"name": "Free",
|
|
"slug": "free",
|
|
"type": "free",
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
|
"visibility": "public",
|
|
"welcome_page_url": "/welcome-free",
|
|
},
|
|
Object {
|
|
"active": true,
|
|
"benefits": Array [],
|
|
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
|
"currency": "GBP",
|
|
"description": null,
|
|
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
"monthly_price": 1200,
|
|
"name": "Default Product",
|
|
"slug": "default-product",
|
|
"type": "paid",
|
|
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
|
"visibility": "public",
|
|
"welcome_page_url": "/welcome-paid",
|
|
"yearly_price": 12000,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Tiers Content API Can request only active 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": "700",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
"vary": "Accept-Encoding",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|