Fixed the test

refs https://github.com/TryGhost/Team/issues/2491
This commit is contained in:
Djordje Vlaisavljevic 2023-01-30 12:45:28 +00:00
parent 050e739c59
commit 5b3a16213b

View File

@ -322,12 +322,13 @@ describe('StaffService', function () {
data: {
mention: {
source: 'https://exmaple.com/some-post',
target: 'https://exmaple.com/some-mentioned-post'
target: 'https://exmaple.com/some-mentioned-post',
sourceSiteTitle: 'Exmaple'
}
}
});
mailStub.calledWith(
sinon.match({subject: `You've been mentioned!`})
sinon.match({subject: `💌 New mention from: Exmaple`})
).should.be.true();
});
});