Ghost/test/utils/fixtures
Kevin Ansfield c33b596e9c
Added API tests for custom theme settings (#13519)
refs https://github.com/TryGhost/Team/issues/1104

- bumped `@tryghost/custom-theme-settings-service` so it throws a more appropriate `ValidationError` when setting keys don't exist or a select value is not known
- changed the custom theme settings service to have a `.init()` method which creates an instance of the service under `.api` so that we're able to create the instance at a particular point in the boot process when we know the models have been initialised
  - there were problems in tests because the service was being initialised through the require chain before models were initialised through the boot process
- fixed incorrect `camelCase` of resource name in API responses
2021-10-08 16:18:49 +01:00
..
config Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
csv Added Members bulk actions endpoint 2021-08-23 16:38:21 +02:00
data 🐛 Fixed redirects "to" query params forwarding (#12333) 2021-01-05 14:11:06 +13:00
export Fixed typo "in" default About page. (#13271) 2021-10-04 12:18:15 +01:00
filter-param Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00
images Added webp image support (#13105) 2021-07-02 09:37:54 +01:00
import Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
settings Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
themes Swapped to American English spellings 2021-06-09 16:39:06 +01:00
cache-rules.js Moved cacheRules from testUtils into fixtures 2021-02-17 17:55:38 +00:00
context.js Split test utilities out into separate files 2021-02-16 20:17:04 +00:00
data-generator.js Added API tests for custom theme settings (#13519) 2021-10-08 16:18:49 +01:00
test.hbs Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00