Ghost/ghost/email-service/test
Simon Backx 109cdeb492 Fixed exporting post metrics without email
no issue

Bookshelf by default returns an empty model when requesting .related('email') for a post without an email. So we need to be a bit smarter to know if a post has an email or not. This fixed an issue where we always showed 'published and emailed' instead of 'published only'.

Since this change also included some changes to test helpers, it also made some changes to the email service because coverage dropped below 100% as a result of fixing the .related method mocking. Ideally we want to move test test helpers to a seperate package in the future.
2023-03-28 12:41:32 +02:00
..
utils Fixed exporting post metrics without email 2023-03-28 12:41:32 +02:00
.eslintrc.js
batch-sending-service.test.js Added subscription status text in newsletters (#16442) 2023-03-22 11:52:41 +01:00
email-controller.test.js
email-event-processor.test.js
email-event-storage.test.js
email-renderer.test.js Fixed issue with email template in Outlook (#16486) 2023-03-24 14:54:16 +01:00
email-segmenter.test.js
email-service.test.js Added subscription status text in newsletters (#16442) 2023-03-22 11:52:41 +01:00
mailgun-email-provider.test.js
sending-service.test.js