0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/test/unit
Kevin Ansfield 5d11475f32 Fixed false positive image-size tests
no issue

- fixed usage of rewire and sinon spies
  - spies actually set (and reset) on the rewired module so the spies are called in place of the original functions
- fixed should syntax for spies, they were written with chai syntax but we don't use chai in server-side code
- chained `.catch(done)` to the `.catch(assertions)` in tests that are testing errors so that we don't have unhandled rejections and 60s timeouts when an assert fails
- changed `.gif` to `.ico` to match current fetch-only extension list
- fixed "[failure] can handle an error with statuscode not 200 (image-size)" which was expecting the `sizeOf` function to be called when it shouldn't be called
2020-12-07 22:38:14 +00:00
..
adapters Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
api 🐛 Fixed page preview 2020-12-04 11:35:15 +01:00
apps Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
data Added migrations for email analytics (#12387) 2020-11-25 17:48:24 +00:00
helpers Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
lib Fixed false positive image-size tests 2020-12-07 22:38:14 +00:00
models Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
server Fixed settings reinit to only emit changed settings events (#12184) 2020-09-23 14:35:03 +01:00
services Supported redirecting externally after signup (#12391) 2020-11-23 09:36:45 +00:00
shared/config Updated tests locations and added linting of core/shared (#11872) 2020-06-01 22:06:50 +01:00
web Replaced constants file with @tryghost/constants 2020-08-11 12:51:16 +01:00