Ghost/core/test/unit
Aileen Nowak 19a6c8a426 Added test for images w/o extensions for image size util (#9367)
closes #9022

Images without extensions don't need to be manipulated, as we're now reading the bytes and pass those to the `image-size` lib.

This PR adds another `user-agent` to emulate multiple browser requests, as I stumbled over an example where the image without extension is protected otherwise.

Added a test, that works with above mentioned image, but is currently mocked. Nevertheless, the image worked as a PoC, that we're able to read the bytes of an image without its extension and still return the dimensions of the image.
2018-01-04 12:03:41 +01:00
..
adapters Use Promise support which was added in fs-extra 3.x 2017-12-13 20:57:11 +01:00
api Burn dirty require of api utils 2017-12-14 21:25:51 +01:00
apps Moved default-cards app to lib/mobiledoc (#9341) 2017-12-14 14:44:01 +00:00
config fix(config): cleanup absolute path config function (#8641) 2017-07-06 00:04:18 +02:00
controllers Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
data Moved image utils to lib/image 2017-12-14 20:46:53 +01:00
helpers Moved image utils to lib/image 2017-12-14 20:46:53 +01:00
lib Added test for images w/o extensions for image size util (#9367) 2018-01-04 12:03:41 +01:00
models Tidy up unit test files (#9340) 2017-12-14 03:36:50 +01:00
public Tidy up unit test files (#9340) 2017-12-14 03:36:50 +01:00
services Used request lib in xmlrpc (#9333) 2017-12-15 16:50:18 +07:00
web Extended ghost version utility (#9278) 2018-01-03 20:20:18 +01:00
filters_spec.js Tidy up unit test files (#9340) 2017-12-14 03:36:50 +01:00