mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
fix(test): save user to avoid lock errors
This commit is contained in:
parent
5aca5b4be7
commit
9b791b4ba0
1 changed files with 4 additions and 0 deletions
|
|
@ -438,6 +438,8 @@ describe('Apple Payments', () => {
|
|||
});
|
||||
|
||||
it('errors when a user is using a rebill of the same subscription', async () => {
|
||||
user = new User();
|
||||
await user.save();
|
||||
payments.createSubscription.restore();
|
||||
iap.getPurchaseData.restore();
|
||||
iapGetPurchaseDataStub = sinon.stub(iap, 'getPurchaseData')
|
||||
|
|
@ -459,6 +461,8 @@ describe('Apple Payments', () => {
|
|||
});
|
||||
|
||||
it('errors when a different user is using the subscription', async () => {
|
||||
user = new User();
|
||||
await user.save();
|
||||
payments.createSubscription.restore();
|
||||
iap.getPurchaseData.restore();
|
||||
iapGetPurchaseDataStub = sinon.stub(iap, 'getPurchaseData')
|
||||
|
|
|
|||
Loading…
Reference in a new issue