0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/test/regression/api/v3/admin
Naz 0962b3ed45 Made custom-redirects middleware testable
refs https://linear.app/tryghost/issue/CORE-35/refactor-route-and-redirect-settings
refs 7528ec8c3b

- The way the custom redirects middleware was organized made it extremely hard to unit test it (had to stub the redirects service methods etc). With a new organization it's possible to provide needed redirects configs to the method which makes the actual redirects Router logic testable and the code less coupled with redirects services
- This was meant to be an attempt to extract more of the slow redirects regression tests, which failed. Instead found this weak spot that could be improved and gained:
- shaved 4s of time as two slow regression test cases are now gone
- there's now a base to build upon when getting more coverage for the custom redirects middleware
2021-09-28 22:00:32 +02:00
..
authentication.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
db.test.js Added custom_theme_settings table/model (#13327) 2021-09-23 11:51:18 +01:00
identities.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
images.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
labels.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
members.test.js Fixed empty response when import triggers a job 2021-07-23 21:14:06 +04:00
members_signin_url.test.js Moved labs utlity to shared 2021-07-08 09:05:41 +01:00
notifications.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
pages.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
posts.test.js Added email_only property in Posts Admin API v4 2021-08-05 19:44:35 +12:00
redirects.test.js Made custom-redirects middleware testable 2021-09-28 22:00:32 +02:00
schedules.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
settings.test.js Added email disabling flag to settings records 2021-07-29 20:30:30 +12:00
site.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
slack.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
users.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
utils.js Refactored test utils "post" properties 2021-05-13 15:41:27 +04:00
webhooks.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00