Ghost/test
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
..
api-acceptance Changed URL protocol in oembed acceptance tests 2020-12-03 21:46:01 +00:00
frontend-acceptance Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
regression Added email.open_rate order option to posts api (#12439) 2020-12-03 20:13:37 +00:00
unit Fixed false positive image-size tests 2020-12-07 22:38:14 +00:00
utils Added email.open_rate order option to posts api (#12439) 2020-12-03 20:13:37 +00:00
.eslintignore Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
.eslintrc.json Enabled error for "no-shadow" eslint rule 2020-10-27 11:27:37 +13:00
.jshintrc Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00