0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/test/unit/services/themes
Hannah Wolfe 1c7c246616 🐛 Fixed theme preview not decoding values properly
- Theme preview was not showing the same behaviour as a real theme because nulls were being encoded and decoded incorrectly causing nulls/empty strings to be treasted as truthy values
- Swap from using split to using proper query param parsing so that the code is more robust
- this still creates empty strings and the string 'null' so added a small function to decode these back to real nulls
- moved to its own file ready to be split out - there needs to be a bigger picture plan for this
- added unit tests to cover the known issues + some potential breakages from converting the header string to a query param object
2021-03-01 11:54:50 +00:00
..
engines Hardened frontend tests checking API engine 2021-02-24 18:55:12 +13:00
handlebars Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
active_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
config_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
list_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
loader_spec.js 🔥 Added support for Node 14 2020-10-23 12:57:02 +01:00
middleware_spec.js Added theme preview mode 2021-02-17 13:49:41 +00:00
preview_spec.js 🐛 Fixed theme preview not decoding values properly 2021-03-01 11:54:50 +00:00
validate_spec.js Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00