Fixed email alert tests

refs c00205bb61
This commit is contained in:
Rishabh 2022-08-25 20:45:50 +05:30
parent 2bc79cd94f
commit 891f19a563

View File

@ -66,11 +66,11 @@ function testCommonPaidSubCancelMailData({mailStub, getEmailAlertUsersStub}) {
testCommonMailData({mailStub, getEmailAlertUsersStub});
getEmailAlertUsersStub.calledWith('paid-canceled').should.be.true();
mailStub.calledWith(
sinon.match({subject: '⚠️ Cancellation: Ghost'})
sinon.match({subject: '⚠️ Cancelation: Ghost'})
).should.be.true();
mailStub.calledWith(
sinon.match.has('html', sinon.match('⚠️ Cancellation: Ghost'))
sinon.match.has('html', sinon.match('⚠️ Cancelation: Ghost'))
).should.be.true();
mailStub.calledWith(
sinon.match.has('html', sinon.match('Test Tier'))