0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/test/unit/lib/image
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
..
blog-icon_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
cached-image-size-from-url_spec.js Fixed non-reverted rewire of imageSize.getImageSizeFromUrl in tests 2020-06-16 20:58:02 +01:00
gravatar_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
image-size_spec.js Fixed false positive image-size tests 2020-12-07 22:38:14 +00:00