0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/test
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
..
api-acceptance Bumped gscan to 4.0.0-pre.1 2021-03-01 19:26:17 +13:00
frontend-acceptance Enabled Members for all sites (#12582) 2021-02-02 16:12:53 +00:00
regression Hardened frontend tests checking API engine 2021-02-24 18:55:12 +13:00
unit 🐛 Fixed theme preview not decoding values properly 2021-03-01 11:54:50 +00:00
utils Added instructions about theme fixtures maintenance 2021-03-01 19:32:20 +13:00
.eslintignore
.eslintrc.json Enabled error for "no-shadow" eslint rule 2020-10-27 11:27:37 +13:00
.jshintrc