Ghost/ghost/core/test/unit
Naz 9b2e36e4fb
Fixed CORS middleware unit test
refs https://github.com/TryGhost/Toolbox/issues/461

- The unit test was never using the "OPTIONS" request method, which did not actually trigger the full logic of the "cors" module used under the hood.
- Using the correct request method triggers all the right pathways and tests the state that's closer to the real world - for example the response does get "ended" instead of calling the "next" middleware.
2022-11-03 11:16:13 +08:00
..
api/canary
frontend Added shouldCompileToError test util 2022-10-30 16:55:53 +00:00
server Fixed CORS middleware unit test 2022-11-03 11:16:13 +08:00
shared