0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test/unit/utils
Hannah Wolfe 9f9d8b2fec Always use our redirects utility (#9132)
no issue

- This started as an attempt to simplify the admin redirect code
- I realised we were sometimes using utils.redirect301 and sometimes not
- Decided to move this into utils.url as it's more relevant to URL generation
- Unified usage of redirects in the codebase
- Updated tests & ensured we have basic coverage
- rename adminRedirect -> redirectToAdmin
- Tweak method signature, fix channel edit redirects
- Tests: Optimised test descriptions for url-redirects_spec.js
- ensure caching works as expected
2017-10-12 14:36:50 +02:00
..
blog-icon_spec.js Refactor: fetch image dimensions from local file storage (#8900) 2017-09-05 14:13:22 +02:00
cached-image-size-from-url_spec.js 🐛 Fix invalid image URLs not being cached and causing timeouts (#8986) 2017-09-12 12:53:18 +01:00
image-size_spec.js 🐛 Fix invalid image URLs not being cached and causing timeouts (#8986) 2017-09-12 12:53:18 +01:00
make-absolute-urls_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
mobiledoc-converter_spec.js replace custom showdown fork with markdown-it (#8451) 2017-05-15 18:48:14 +02:00
packages_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
read-csv_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
request_spec.js Request util to wrap got library (#8980) 2017-09-07 12:17:24 +01:00
tokens_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
url_spec.js Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
zip-folder_spec.js Tests: Sort out usage of content folder in tests (#9034) 2017-09-21 15:05:35 +01:00