chore: update tests

This commit is contained in:
Mo
2023-08-07 11:53:00 -05:00
parent 653af36363
commit 0f1c8ef030
3 changed files with 11 additions and 3 deletions

View File

@@ -424,14 +424,18 @@ describe('asymmetric messages', function () {
})
it('sending a new vault invite to a trusted contact then changing account password should still allow contact to trust invite', async () => {
const { sharedVault, contactContext, contact, deinitContactContext } = await Collaboration.createSharedVaultWithAcceptedInvite(
await context.activatePaidSubscriptionForUser()
const { contactContext, contact, deinitContactContext } = await Collaboration.createSharedVaultWithAcceptedInvite(
context,
)
contactContext.lockSyncing()
const newVault = await Collaboration.createSharedVault(context)
await context.vaultInvites.inviteContactToSharedVault(
sharedVault,
newVault,
contact,
SharedVaultUserPermission.PERMISSIONS.Write,
)

View File

@@ -223,4 +223,8 @@ describe('shared vault invites', function () {
await deinitContactContext()
})
it.skip('should fail to invite user if already member of shared vault', async () => {
console.error('Implement')
})
})

View File

@@ -124,7 +124,7 @@ describe('shared vault items', function () {
})
it('adding item to vault while belonging to other vault should move the item to new vault', async () => {
context.activatePaidSubscriptionForUser()
await context.activatePaidSubscriptionForUser()
const { note, contactContext, contact, deinitContactContext } =
await Collaboration.createSharedVaultWithAcceptedInviteAndNote(context)