fix(test): expect two PMs during sub promo

This commit is contained in:
Sabe Jones 2019-12-17 14:22:43 -06:00
parent 9fe28c6d51
commit ae26cc3244

View file

@ -211,7 +211,7 @@ describe('payments/index', () => {
await api.createSubscription(data);
const msg = '`Hello recipient, sender has sent you 3 months of subscription!`';
expect(user.sendMessage).to.be.calledOnce;
expect(user.sendMessage).to.be.calledTwice;
expect(user.sendMessage).to.be.calledWith(
recipient,
{ receiverMsg: msg, senderMsg: msg, save: false },