Fixed tests

This commit is contained in:
Todd Martin 2024-04-18 14:59:36 -04:00
parent de478f87fe
commit f8229553ee
No known key found for this signature in database
GPG Key ID: 663E7AF5C839BC8F
1 changed files with 0 additions and 10 deletions

View File

@ -187,16 +187,6 @@ describe("KeyRotationService", () => {
);
});
it("uses legacy rotation if feature flag is off", async () => {
mockConfigService.getFeatureFlag.mockResolvedValueOnce(false);
await keyRotationService.rotateUserKeyAndEncryptedData("mockMasterPassword");
expect(mockApiService.postUserKeyUpdate).toHaveBeenCalled();
expect(mockEmergencyAccessService.postLegacyRotation).toHaveBeenCalled();
expect(mockResetPasswordService.postLegacyRotation).toHaveBeenCalled();
});
it("throws if server rotation fails", async () => {
mockApiService.postUserKeyUpdate.mockRejectedValueOnce(new Error("mockError"));