mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
fix(test): expect two PMs during sub promo
This commit is contained in:
@@ -211,7 +211,7 @@ describe('payments/index', () => {
|
|||||||
await api.createSubscription(data);
|
await api.createSubscription(data);
|
||||||
const msg = '`Hello recipient, sender has sent you 3 months of subscription!`';
|
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(
|
expect(user.sendMessage).to.be.calledWith(
|
||||||
recipient,
|
recipient,
|
||||||
{ receiverMsg: msg, senderMsg: msg, save: false },
|
{ receiverMsg: msg, senderMsg: msg, save: false },
|
||||||
|
|||||||
Reference in New Issue
Block a user