mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
31c1d4f513
refs https://ghost.slack.com/archives/C02G9E68C/p1648737467414789?thread_ts=1648644801.253699&cid=C02G9E68C - Anything in the API should use snakeCase - Reduce amount of nesting in endpoint name - Added totals metadata
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Stats API Can fetch member count history 1: [body] 1`] = `
|
|
Object {
|
|
"meta": Object {
|
|
"pagination": Object {
|
|
"limit": "all",
|
|
"next": null,
|
|
"page": 1,
|
|
"pages": 1,
|
|
"prev": null,
|
|
"total": 1,
|
|
},
|
|
"totals": Object {
|
|
"comped": 0,
|
|
"free": 3,
|
|
"paid": 5,
|
|
},
|
|
},
|
|
"stats": Array [
|
|
Object {
|
|
"comped": 0,
|
|
"date": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
|
"free": 3,
|
|
"paid": 5,
|
|
"paid_canceled": 0,
|
|
"paid_subscribed": 0,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Stats API Can fetch member count history 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": "231",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
"vary": "Origin, Accept-Encoding",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|