0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/test/utils/fixtures
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
..
config Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
csv Updated canary members controller to use new Importer 2020-12-09 19:25:57 +00:00
data 🐛 Fixed redirects "to" query params forwarding (#12333) 2021-01-05 14:11:06 +13:00
export Added default value to accent_color setting (#12743) 2021-03-09 16:15:10 +00:00
filter-param Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
images Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
import Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
settings Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
themes 🐛 Fixed @price template data to work with price helper (#12764) 2021-03-18 16:13:10 +00:00
cache-rules.js Moved cacheRules from testUtils into fixtures 2021-02-17 17:55:38 +00:00
context.js Split test utilities out into separate files 2021-02-16 20:17:04 +00:00
data-generator.js 🐛 Fixed complimentary members' content gating (#12761) 2021-03-15 19:13:48 +13:00
test.hbs Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00