mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
9b2e36e4fb
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. |
||
---|---|---|
.. | ||
admin | ||
api | ||
parent/middleware | ||
shared/middleware |