Ghost/test/e2e-api/content/__snapshots__/offers.test.js.snap
Rishabh Garg 725c2673ea
Added offer read endpoint to content API (#14794)
refs TryGhost/Team#1599

- allows offer details to be fetched via content API directly
2022-05-12 18:16:10 +05:30

39 lines
1.1 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Offers Content API Can read offer details from id 1: [body] 1`] = `
Object {
"offers": Array [
Object {
"amount": 12,
"cadence": "year",
"currency": null,
"currency_restriction": false,
"display_description": "",
"display_title": "",
"duration": "once",
"duration_in_months": null,
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
"name": "Black Friday",
"status": "active",
"tier": Object {
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
"name": "Default Product",
},
"type": "percent",
},
],
}
`;
exports[`Offers Content API Can read offer details from id 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": "331",
"content-type": "application/json; charset=utf-8",
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
"vary": "Accept-Encoding",
"x-powered-by": "Express",
}
`;