2022-03-31 16:01:11 +02:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2022-04-08 09:18:04 +02:00
|
|
|
exports[`Stats API Can fetch MRR history 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"meta": Object {
|
|
|
|
"totals": Array [
|
|
|
|
Object {
|
|
|
|
"currency": "usd",
|
|
|
|
"mrr": 1000,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"stats": Array [
|
2022-04-27 14:53:32 +01:00
|
|
|
Object {
|
|
|
|
"currency": "usd",
|
|
|
|
"date": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
|
|
|
"mrr": 0,
|
|
|
|
},
|
2022-04-08 09:18:04 +02:00
|
|
|
Object {
|
|
|
|
"currency": "usd",
|
|
|
|
"date": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
|
|
|
"mrr": 1000,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Stats API Can fetch MRR 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",
|
2022-04-27 14:53:32 +01:00
|
|
|
"content-length": "158",
|
2022-04-08 09:18:04 +02:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-03-31 16:01:11 +02:00
|
|
|
exports[`Stats API Can fetch member count history 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"meta": Object {
|
2022-03-31 17:03:29 +02:00
|
|
|
"totals": Object {
|
|
|
|
"comped": 0,
|
|
|
|
"free": 3,
|
|
|
|
"paid": 5,
|
|
|
|
},
|
2022-03-31 16:01:11 +02:00
|
|
|
},
|
|
|
|
"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",
|
2022-04-06 17:10:47 +02:00
|
|
|
"content-length": "149",
|
2022-03-31 16:01:11 +02:00
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|
2022-04-27 14:53:32 +01:00
|
|
|
|
|
|
|
exports[`Stats API Can fetch subscriptions history 1: [body] 1`] = `
|
|
|
|
Object {
|
|
|
|
"meta": Object {
|
|
|
|
"cadences": Array [
|
|
|
|
"year",
|
|
|
|
"month",
|
|
|
|
],
|
|
|
|
"tiers": Array [
|
|
|
|
StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
],
|
|
|
|
"totals": Array [
|
|
|
|
Object {
|
|
|
|
"cadence": "month",
|
|
|
|
"count": 1,
|
|
|
|
"tier": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"stats": Array [
|
|
|
|
Object {
|
|
|
|
"cadence": "month",
|
|
|
|
"count": 1,
|
|
|
|
"date": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
|
|
|
"negative_delta": 0,
|
|
|
|
"positive_delta": 1,
|
|
|
|
"tier": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"cadence": "year",
|
|
|
|
"count": 0,
|
|
|
|
"date": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
|
|
|
"negative_delta": 0,
|
|
|
|
"positive_delta": 0,
|
|
|
|
"tier": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Stats API Can fetch subscriptions 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": "403",
|
|
|
|
"content-type": "application/json; charset=utf-8",
|
|
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
|
|
"vary": "Origin, Accept-Encoding",
|
|
|
|
"x-powered-by": "Express",
|
|
|
|
}
|
|
|
|
`;
|