Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('throws when sharing with already claimed identity', async () => {
await bobLaptop.encrypt(clearText, { shareWithUsers: [publicProvisionalIdentity] });
const verificationCode = await args.appHelper.getVerificationCode(email);
await aliceLaptop.verifyProvisionalIdentity({ email, verificationCode });
await expect(bobLaptop.encrypt(clearText, { shareWithUsers: [publicProvisionalIdentity] })).to.be.rejectedWith(errors.InternalError);
});