From f8f4841d2b70dd43d9c49208233cc76a2bc917b2 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Tue, 26 Apr 2022 14:21:50 +0200 Subject: [PATCH] Updated tests for getNewsletterSubscriptionEvents --- ghost/members-api/test/unit/lib/repositories/event.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ghost/members-api/test/unit/lib/repositories/event.test.js b/ghost/members-api/test/unit/lib/repositories/event.test.js index 47010ab226..15ba6e15a9 100644 --- a/ghost/members-api/test/unit/lib/repositories/event.test.js +++ b/ghost/members-api/test/unit/lib/repositories/event.test.js @@ -107,7 +107,7 @@ describe('EventRepository', function () { type: 'unused' }); fake.calledOnceWithExactly({ - withRelated: ['member'], + withRelated: ['member', 'newsletter'], filter: '' }).should.be.eql(true); }); @@ -117,7 +117,7 @@ describe('EventRepository', function () { 'data.created_at': 'data.created_at:123' }); fake.calledOnceWithExactly({ - withRelated: ['member'], + withRelated: ['member', 'newsletter'], filter: 'created_at:123' }).should.be.eql(true); }); @@ -128,7 +128,7 @@ describe('EventRepository', function () { 'data.member_id': 'data.member_id:-[3,4,5]+data.member_id:-[1,2,3]' }); fake.calledOnceWithExactly({ - withRelated: ['member'], + withRelated: ['member', 'newsletter'], filter: 'created_at:123+created_at:<99999+member_id:-[3,4,5]+member_id:-[1,2,3]' }).should.be.eql(true); });