0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00
ghost/test/unit/services
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
..
apps Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
auth Removed global.Promise override (#12182) 2020-11-04 10:55:47 +00:00
mail Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
members 🏗 Flattened members subscriptions data in API (#12581) 2021-02-02 16:12:53 +00:00
permissions Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
routing Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
rss Fixed posts_meta relation in test fixtures 2020-09-17 20:46:45 +12:00
settings Updated code to reflect js-yaml dependency changes 2021-02-10 11:39:30 +00:00
themes 🐛 Fixed theme preview not decoding values properly 2021-03-01 11:54:50 +00:00
url Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
labs_spec.js Hardcoded labs to always return members:true 2021-02-17 19:55:16 +13:00
slack_spec.js Refactored usage of the pre v4 "slack" setting 2021-02-15 15:25:54 +13:00
xmlrpc_spec.js Split the "Too many requests" error in ping service 2021-02-17 13:18:45 +13:00