Ghost/ghost/core/test/e2e-frontend
Simon Backx 3a78cf48c9
Fixed deleting session when requesting identity for invalid session (#19017)
ref https://ghost.slack.com/archives/C02G9E68C/p1700129928489809

- When the GET /api/session endpoint is called, the session is deleted
if it is invalid
- We don't have a body parser for this GET endoint, and the request
object was passed to the deleteSession handler. This caused a type error
(cannot read properties of undefined)
- We had dangling promise because deleteSession is async and wasn't
awaited, causing random errors in tests
- Added a test that would have caught this earlier
2023-11-16 11:01:50 +00:00
..
helpers
advanced_url_config.test.js
custom_routes.test.js
default_routes.test.js
email_routes.test.js
member_stats.test.js
members.test.js Fixed deleting session when requesting identity for invalid session (#19017) 2023-11-16 11:01:50 +00:00
preview_routes.test.js 🐛 Redirected email previews to /email/ route (#18976) 2023-11-14 13:31:41 -06:00