0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/test/unit/web
Naz 8f5186995d Added unit test coverage for invalid redirects config
refs https://linear.app/tryghost/issue/CORE-86/fix-failing-site-instance-when-redirects-file-is-invalid
refs 260a47da83

- Refed commit was missing a unit test coverage.
- The approach here introduces a new pattern - using `supertest` in unit tests. I've found this to be the most expressive way to test an express app which receives certain middleware dynamically. Because there are very few moving parts the test is still extremely quick to run
2021-10-04 16:44:23 +02:00
..
admin Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
api Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
parent Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
shared/middleware Added unit test coverage for invalid redirects config 2021-10-04 16:44:23 +02:00
site/middleware Fixed error when requesting resize of a blank image 2021-07-07 19:11:24 +01:00