diff --git a/apps/web/src/app/auth/core/services/registration/web-registration-finish.service.spec.ts b/apps/web/src/app/auth/core/services/registration/web-registration-finish.service.spec.ts index 02eb58091bf..ea30e0990ea 100644 --- a/apps/web/src/app/auth/core/services/registration/web-registration-finish.service.spec.ts +++ b/apps/web/src/app/auth/core/services/registration/web-registration-finish.service.spec.ts @@ -213,16 +213,16 @@ describe("WebRegistrationFinishService", () => { providerInviteToken = "providerInviteToken"; providerUserId = "providerUserId"; - salt = "salt" as unknown as MasterPasswordSalt; + salt = "salt" as MasterPasswordSalt; masterPasswordAuthentication = { salt, kdf: DEFAULT_KDF_CONFIG, - masterPasswordAuthenticationHash: "authHash" as unknown as string, + masterPasswordAuthenticationHash: "authHash" as string, }; masterPasswordUnlock = new MasterPasswordUnlockData( salt, DEFAULT_KDF_CONFIG, - new EncString("wrapped") as unknown as any, + new EncString("wrapped") as any, ); }); diff --git a/libs/auth/src/angular/registration/registration-finish/default-registration-finish.service.spec.ts b/libs/auth/src/angular/registration/registration-finish/default-registration-finish.service.spec.ts index 622eb5c5ae8..9df48f2f6a7 100644 --- a/libs/auth/src/angular/registration/registration-finish/default-registration-finish.service.spec.ts +++ b/libs/auth/src/angular/registration/registration-finish/default-registration-finish.service.spec.ts @@ -88,7 +88,7 @@ describe("DefaultRegistrationFinishService", () => { it("throws an error if the user key cannot be created", async () => { keyService.makeUserKey.mockResolvedValue([null, null]); - masterPasswordService.emailToSalt.mockReturnValue("salt" as unknown as MasterPasswordSalt); + masterPasswordService.emailToSalt.mockReturnValue("salt" as MasterPasswordSalt); await expect(service.finishRegistration(email, passwordInputResult)).rejects.toThrow( "User key could not be created", @@ -99,11 +99,11 @@ describe("DefaultRegistrationFinishService", () => { keyService.makeUserKey.mockResolvedValue([userKey, userKeyEncString]); keyService.makeKeyPair.mockResolvedValue(userKeyPair); accountApiService.registerFinish.mockResolvedValue(); - const salt = "salt" as unknown as MasterPasswordSalt; + const salt = "salt" as MasterPasswordSalt; const masterPasswordAuthentication: MasterPasswordAuthenticationData = { salt, kdf: DEFAULT_KDF_CONFIG, - masterPasswordAuthenticationHash: "authHash" as unknown as MasterPasswordAuthenticationHash, + masterPasswordAuthenticationHash: "authHash" as MasterPasswordAuthenticationHash, }; const masterPasswordUnlock = new MasterPasswordUnlockData( salt,