Fixed tiers test with correct visibility (#14280)

refs https://github.com/TryGhost/Team/issues/1387
This commit is contained in:
Rishabh Garg 2022-03-08 18:00:30 +05:30 committed by GitHub
parent 7c43191ca7
commit e6c9dadec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ Object {
"stripe_prices": null, "stripe_prices": null,
"type": "free", "type": "free",
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/, "updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
"visibility": "none", "visibility": "public",
"welcome_page_url": "/welcome-free", "welcome_page_url": "/welcome-free",
}, },
Object { Object {
@ -38,7 +38,7 @@ Object {
"stripe_prices": null, "stripe_prices": null,
"type": "paid", "type": "paid",
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/, "updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
"visibility": "none", "visibility": "public",
"welcome_page_url": "/welcome-paid", "welcome_page_url": "/welcome-paid",
}, },
], ],

View File

@ -24,7 +24,7 @@ Object {
"stripe_prices": null, "stripe_prices": null,
"type": "free", "type": "free",
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/, "updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
"visibility": "none", "visibility": "public",
"welcome_page_url": "/welcome-free", "welcome_page_url": "/welcome-free",
}, },
Object { Object {
@ -38,7 +38,7 @@ Object {
"stripe_prices": null, "stripe_prices": null,
"type": "paid", "type": "paid",
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/, "updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
"visibility": "none", "visibility": "public",
"welcome_page_url": "/welcome-paid", "welcome_page_url": "/welcome-paid",
}, },
], ],
@ -61,7 +61,7 @@ exports[`Tiers Content API Can request tiers 2: [headers] 1`] = `
Object { Object {
"access-control-allow-origin": "*", "access-control-allow-origin": "*",
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0", "cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
"content-length": "683", "content-length": "687",
"content-type": "application/json; charset=utf-8", "content-type": "application/json; charset=utf-8",
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/, "etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
"vary": "Accept-Encoding", "vary": "Accept-Encoding",