Ghost/test/unit/lib
Kevin Ansfield f27282bc3f
Added mobiledoc transform to populate missing image sizes on forced re-render (#11924)
no issue

- adds `populateImageSizes()` to our mobiledoc lib module
  - uses `image-size` lib to speed up reading of image dimensions
  - for local images, use storage adapter with same guards as used by `handle-image-sizes` middleware so that we don't insert srcsets for images that aren't transformable
  - for unsplash images, remove any width and crop params from the url so it points to the full-size image
- use `populateImageSizes(mobiledoc)` to modify post model's mobiledoc when re-rendering
2020-06-17 13:12:32 +01:00
..
fs Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
image Fixed non-reverted rewire of imageSize.getImageSizeFromUrl in tests 2020-06-16 20:58:02 +01:00
promise Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
security Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
external-request_spec.js Merge pull request from GHSA-4m2q-w26j-h268 2020-06-02 14:30:10 +01:00
ghost-version_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
mobiledoc_spec.js Added mobiledoc transform to populate missing image sizes on forced re-render (#11924) 2020-06-17 13:12:32 +01:00
request_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00