Ghost/test/unit/server/services
Thibaut Patel ed29c7addf Filtered member email recipients based on the newsletter subscriptions (#14489)
refs https://github.com/TryGhost/Team/issues/1524

- We need to fetch the post newsletter to grab the slug as it's needed for the member NQL filter.
- We can then use the newsletter slug and append it in the existing member NQL filter.
- Removed `subscribed:true` when an email is sent to a newsletter and replaced it with the newsletter id
- Added `status:-free` when an email is sent to a newsletter with `visibility` set to `paid`
- Added tests what happens when you publish without newsletter_id
- Added tests what happens when you publish with newsletter_id

Co-authored-by: Simon Backx <simon@ghost.org>
2022-04-26 12:31:34 +01:00
..
adapter-manager Added local media storage adapter 2021-11-03 00:33:28 +13:00
auth Updated newsletter fixtures to remove nullable sender name (#14479) 2022-04-14 23:45:59 +05:30
mail Removed remaining usage of i18n & translation file 2021-10-15 11:39:07 +01:00
mega Filtered member email recipients based on the newsletter subscriptions (#14489) 2022-04-26 12:31:34 +01:00
members Added default newsletter subscription for new members (#14431) 2022-04-07 08:30:00 +05:30
newsletters Added newsletter from address verification (#14491) 2022-04-26 12:31:34 +01:00
notifications Replace error handler middleware with @tryghost/mw-error-handler (#13879) 2021-12-14 15:18:46 +00:00
permissions Moved server unit tests into the server folder 2021-10-06 12:01:09 +01:00
posts Moved server unit tests into the server folder 2021-10-06 12:01:09 +01:00
redirects Slimmed down redirects test suites 2021-11-26 06:18:36 +13:00
route-settings Moved route-settings tests to their own folder 2022-04-08 16:53:11 +01:00
settings Added test coverage to settings bread service 2022-04-22 16:31:56 +08:00
stripe Aliased canary endpoints to point to non-versioned URLs 2022-03-14 21:22:54 +13:00
themes Moved server unit tests into the server folder 2021-10-06 12:01:09 +01:00
url Fixed location of url service unit tests 2022-04-06 13:05:41 +01:00
webhooks Removed models dependency from Webhook Service test 2022-04-14 16:12:05 +08:00
labs.test.js Added ability for themes to define custom settings (#13661) 2021-10-22 15:02:16 +01:00
slack.test.js Replaced schema.isPost in slack service /w custom fn 2022-04-05 14:24:42 +01:00
xmlrpc.test.js Moved server unit tests into the server folder 2021-10-06 12:01:09 +01:00