0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/test/api-acceptance/admin
Fabien 'egg' O'Carroll d19452147d
🐛 Fixed @price template data to work with price helper (#12764)
closes https://github.com/TryGhost/Team/issues/545

The price helper requires an object with amount & currency properties to
work correctly. This updates the @price data object to expose these.

In order to maintain backward compatibility with using the @price data
as primitive number values, we add a valueOf method which returns the
legacy dollar amount value.

This means you can use {{price @price.monthly}} OR
{{@price.monthly}} - the second of which will output the dollar
amount.

A new theme fixture was added to test both usages of the @price data
2021-03-18 16:13:10 +00:00
..
actions_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
actions_spec_v3.js Added acceptance tests on the v3 api version. 2021-01-22 17:49:06 +01:00
config_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
db_spec.js Excluded member events tables from site exports 2021-03-05 11:41:00 +00:00
email_preview_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
emails_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
images_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
integrations_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
invites_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
key_authentication_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
key_authentication_spec_v3.js Added acceptance tests on the v3 api version. 2021-01-22 17:49:06 +01:00
labels_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
labels_spec_v3.js Added acceptance tests on the v3 api version. 2021-01-22 17:49:06 +01:00
mail_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
members_spec.js 🐛 Fixed complimentary members' content gating (#12761) 2021-03-15 19:13:48 +13:00
notifications_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
oembed_spec.js Changed URL protocol in oembed acceptance tests 2020-12-03 21:46:01 +00:00
pages_spec.js Updated fixtures for Ghost v4.0 2021-03-10 17:37:16 +00:00
posts_spec.js Updated fixtures for Ghost v4.0 2021-03-10 17:37:16 +00:00
roles_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
settings_spec.js Fixed __GHOST_URL__ appearing in settings values after edit (#12738) 2021-03-08 18:41:43 +00:00
slugs_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
snippets_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
tags_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
themes_spec.js 🐛 Fixed @price template data to work with price helper (#12764) 2021-03-18 16:13:10 +00:00
users_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
utils.js 🏗 Altered slug unique constraint in posts table 2021-02-09 13:31:12 +13:00
utils_v3.js Added status property to members (#12570) 2021-02-02 16:11:34 +00:00
webhooks_spec.js Updated API versions used in regression test for webhooks 2021-03-04 13:06:16 +13:00