Ghost/test
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
..
api-acceptance 🐛 Fixed @price template data to work with price helper (#12764) 2021-03-18 16:13:10 +00:00
frontend-acceptance 🐛 Fixed @price template data to work with price helper (#12764) 2021-03-18 16:13:10 +00:00
regression Fixed broken tests from previous commit 2021-03-17 16:18:48 +01:00
unit 🐛 Fixed AMP validation warning from accent color style tag (#12771) 2021-03-17 11:49:42 +00:00
utils 🐛 Fixed @price template data to work with price helper (#12764) 2021-03-18 16:13:10 +00:00
.eslintignore Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
.eslintrc.json Enabled error for "no-shadow" eslint rule 2020-10-27 11:27:37 +13:00
.jshintrc Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00