Ghost/core/test/unit/utils
Hannah Wolfe c70fbc2c7e 🎨 Collect & simplify package utils (#8080)
closes #8056

🎨 Collect together the package-related utils
- read directory actually reads a directory of packages
- parse package json is very tighly related to this

🎨 Move filterPaths -> packages.filterPackages
- this function is related to packages, not settings
- move the function to the new utils/packages
- add 100% test coverage

🎨 Simplify filterPackages code
🎨 Simplify reading of packages & themes
- This massively reduces all the complex code in the read packages & themes utils
- Added full test coverage

🎨 Improve & clarify active prop in filterPackages
- active is returned from API endpoints to combine data from multiple sources
- see https://github.com/TryGhost/Ghost/pull/8064#discussion_r103514810

🎨 Better error handling
🔥 Temporarily remove custom error templates
- we will reimplement this later when we have got a better concept of loading the active theme in place
- refs #8079
2017-03-01 14:09:31 +01:00
..
cached-image-size-from-url_spec.js [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
image-size-from-url_spec.js 🎨 add getSubdir and getProtectedSlugs 2016-09-20 15:59:34 +01:00
make-absolute-urls_spec.js 🎨 Util to convert relative urls in absolute (#7264) 2016-08-25 07:09:40 +01:00
packages_spec.js 🎨 Collect & simplify package utils (#8080) 2017-03-01 14:09:31 +01:00
read-csv_spec.js 🎨 Use GhostAuth name and example emails (#7475) 2016-10-03 15:11:43 +01:00
tokens_spec.js chore(package): update uuid to version 3.0.0 (#7742) 2017-01-04 17:10:29 +01:00
url_spec.js 🎨 Move settings cache & cleanup settings API (#8057) 2017-02-27 16:53:04 +01:00