Ghost/ghost/core/test/utils
Simon Backx 2e85ae98be
🐛 Fixed sending emails from email domain that includes www subdomain (#15348)
fixes https://github.com/TryGhost/Team/issues/1855
fixes https://github.com/TryGhost/Team/issues/1866

This commit moves all duplicate methods to get the support email address to a single location. Also methods to get the default email domain are moved.

For the location, I initially wanted to put it at the settings service. But that service doesn't feel like the right place. Instead I created a new settings helpers service. This service takes the settingsCache, urlUtils and config and calculates some special 'calculated' settings based on those:

- Support email methods
- Stripe (active) keys / stripe connected (also removed some duplicate code that calculated the keys in a couple of places)
- All the calculated settings are moved to the settings helpers

I'm not 100% confident in whether this is the right place to put the helpers. Suggestions are welcome.
2022-09-02 16:57:59 +02:00
..
agents Renamed content api agent auth method 2022-09-02 10:48:03 +01:00
fixtures Fixed users:no-owner fixture to add roles correctly 2022-09-02 08:26:30 +01:00
mocks Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
admin-utils.js 🐛 Fixed missing published Admin assets when running in development 2022-08-04 10:55:35 +02:00
api.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
assertions.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
configUtils.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
db-utils.js Fixed warning about aborted connection in tests 2022-08-31 12:15:30 +01:00
e2e-framework-mock-manager.js 🐛 Fixed sending emails from email domain that includes www subdomain (#15348) 2022-09-02 16:57:59 +02:00
e2e-framework.js Fixed typo 2022-09-01 11:01:15 +08:00
e2e-utils.js Improved performance of prepareContentFolder function 2022-08-01 08:58:13 +02:00
fixture-utils.js Renamed users:no-owner to users as main user fixture 2022-09-02 10:08:37 +01:00
index.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
overrides.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
redirects.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
url-service-utils.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
urlUtils.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00