From 3186323663b436c9766f995f74cfdd1c8ddc23c1 Mon Sep 17 00:00:00 2001 From: Steve Larson <9larsons@gmail.com> Date: Wed, 1 Feb 2023 17:20:24 -0600 Subject: [PATCH] updated listeners in test to be fully inclusive no ref -test wasn't previously updated to include all event listeners --- ghost/webmentions/test/MentionSendingService.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/webmentions/test/MentionSendingService.test.js b/ghost/webmentions/test/MentionSendingService.test.js index be849fa37a..64607acf33 100644 --- a/ghost/webmentions/test/MentionSendingService.test.js +++ b/ghost/webmentions/test/MentionSendingService.test.js @@ -27,7 +27,7 @@ describe('MentionSendingService', function () { }); describe('listen', function () { - it('Calls on post.edited', async function () { + it('Calls on post.published, post.published.edited, post.unpublished', async function () { const service = new MentionSendingService({}); const stub = sinon.stub(service, 'sendForPost').resolves(); let callback; @@ -37,7 +37,7 @@ describe('MentionSendingService', function () { }) }; service.listen(events); - sinon.assert.calledOnce(events.on); + sinon.assert.calledThrice(events.on); await callback({}); sinon.assert.calledOnce(stub); });