Ghost/test/utils
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
..
fixtures Added API tests for custom theme settings (#13519) 2021-10-08 16:18:49 +01:00
mocks 🔥 Added support for Node 14 2020-10-23 12:57:02 +01:00
admin-utils.js Improved dev tooling (#13118) 2021-07-05 20:02:22 +01:00
api.js Extracted promise libs and history into @tryghost/promise 2020-08-11 18:44:21 +01:00
assertions.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
configUtils.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
db-utils.js Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
e2e-utils.js Renamed our acceptance tests to "e2e" 2021-10-06 12:40:52 +01:00
fixture-utils.js Added API tests for custom theme settings (#13519) 2021-10-08 16:18:49 +01:00
index.js Renamed our acceptance tests to "e2e" 2021-10-06 12:40:52 +01:00
old-integration-utils.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
overrides.js Improved dev tooling (#13118) 2021-07-05 20:02:22 +01:00
redirects.js Split test utilities out into separate files 2021-02-16 20:17:04 +00:00
url-service-utils.js Replaced db.ready event with direct call to urlservice 2021-02-23 10:05:59 +00:00
urlUtils.js Swapped out usage of stubUrlUtils for configUtils 2021-06-21 11:07:30 +01:00