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. |
||
---|---|---|
.. | ||
api/canary | ||
frontend | ||
server | ||
shared |