Ghost/test/unit
Naz 5066e65e03 Added validation to redirects config
refs https://linear.app/tryghost/issue/CORE-86/fix-failing-site-instance-when-redirects-file-is-invalid
refs 260a47da83

- Added validation logic to catch redirects files having invalid RegEx expressions when they are introduced into the system (on upload)
- This way the error happening in the refed commit would have not happened as the validator would not have passed it through
- Moved up the "Router" declaration in custom-redirects as it needs to happen before any other bit of logic has a chance to throw
2021-10-04 18:32:40 +02:00
..
adapters Refactored scheduling default test to use nock 2021-07-15 14:07:11 +04:00
api Fixed failing unit test 2021-08-13 10:22:11 +04:00
apps Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
data Added offers table (#13381) 2021-10-01 12:18:33 +02:00
helpers Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
lib Blocked 0.* IP addresses when making oembed requests 2021-09-14 11:35:14 +01:00
meta Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
models Fixed settings tests due to Bookshelf update 2021-09-10 16:59:11 +01:00
server Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
services Added validation to redirects config 2021-10-04 18:32:40 +02:00
shared Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
web Added validation to redirects config 2021-10-04 18:32:40 +02:00