Ghost/test
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
..
e2e-api Added API tests for custom theme settings (#13519) 2021-10-08 16:18:49 +01:00
e2e-frontend Updated e2e tests to be async/await 2021-10-06 15:51:05 +01:00
e2e-server Moved parent vhost test back to regression temporarily 2021-10-08 13:50:37 +01:00
integration Cleaned up some e2e/integration tests 2021-10-06 14:40:39 +01:00
regression Moved parent vhost test back to regression temporarily 2021-10-08 13:50:37 +01:00
unit Replaced i18n.t w/ tpl in core/server/lib/image (#13507) 2021-10-08 15:44:13 +01:00
utils Added API tests for custom theme settings (#13519) 2021-10-08 16:18:49 +01:00
.eslintignore Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
.eslintrc.js Upgraded no-skipped-test rule to error 2021-05-26 14:57:43 +01:00
.jshintrc Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00