Ghost/ghost/core/test
Daniel Lockyer 7950122ffe Protected against deleting non-existent image during upload
fix https://linear.app/tryghost/issue/SLO-93/undefined-path-error-with-bad-image-upload

- in the event we receive a request to upload an image, that doesn't
  contain an image, we still try and unlink the files
- this is a dangling promise, so it doesn't cause an explicit HTTP
  error, but it does show up as a console error
- fixed it by checking for the path, and early returning if it doesn't
  exist
- also added a test that would fail without this
2024-05-02 17:29:03 +02:00
..
e2e-api Protected against deleting non-existent image during upload 2024-05-02 17:29:03 +02:00
e2e-browser 🐛 Fixed admin error when deleting an unsaved or imported post (#20053) 2024-04-18 10:02:02 -07:00
e2e-frontend Added new member signup flow behind labs flag (#19986) 2024-04-04 15:25:41 -07:00
e2e-server Enforced more Mocha lint rules (#19720) 2024-04-16 09:37:06 +02:00
e2e-webhooks Cleaned up lexicalEditor labs flag, switched Post model to lexical-by-default (#18607) 2023-10-23 17:51:34 +01:00
integration 🐛 Fixed file card button not being linked in emails (#20023) 2024-04-16 10:37:28 +00:00
regression Updated staff deletion logic (#20069) 2024-04-25 08:19:11 -05:00
unit Added timeout when resizing an image (#20087) 2024-04-30 08:39:30 +01:00
utils Optimised email stats aggregation query for typical column usage 2024-04-03 16:27:23 +01:00
.eslintignore Added Source as the new default theme 2023-10-03 14:02:08 +02:00
.eslintrc.js Enforced more Mocha lint rules (#19720) 2024-04-16 09:37:06 +02:00