mirror of
https://github.com/bitwarden/browser
synced 2026-02-18 18:33:50 +00:00
Prettier
This commit is contained in:
@@ -71,7 +71,7 @@ type MasterPasswordAuthenticationAndUnlockData = {
|
||||
* A token provider that exposes a null access token to the SDK.
|
||||
*/
|
||||
class NoopTokenProvider implements TokenProvider {
|
||||
constructor() { }
|
||||
constructor() {}
|
||||
|
||||
async get_access_token(): Promise<string | undefined> {
|
||||
// Ignore from the test coverage, since this is called by the SDK
|
||||
@@ -106,7 +106,7 @@ export class UserKeyRotationService {
|
||||
private securityStateService: SecurityStateService,
|
||||
private sdkService: SdkService,
|
||||
private masterPasswordService: MasterPasswordServiceAbstraction,
|
||||
) { }
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Creates a new user key and re-encrypts all required data with the it.
|
||||
|
||||
@@ -94,11 +94,7 @@ describe("DefaultUserKeyRotationService", () => {
|
||||
|
||||
mockSdkService.userClient$.mockReturnValue(of(mockSdkClient as any));
|
||||
|
||||
service = new DefaultUserKeyRotationService(
|
||||
mockSdkService,
|
||||
mockLogService,
|
||||
mockDialogService,
|
||||
);
|
||||
service = new DefaultUserKeyRotationService(mockSdkService, mockLogService, mockDialogService);
|
||||
|
||||
KeyRotationTrustInfoComponent.open = initialPromptedOpenTrue;
|
||||
EmergencyAccessTrustComponent.open = emergencyAccessTrustOpenTrusted;
|
||||
|
||||
@@ -25,7 +25,7 @@ export class DefaultUserKeyRotationService implements UserKeyRotationService {
|
||||
private sdkService: SdkService,
|
||||
private logService: LogService,
|
||||
private dialogService: DialogService,
|
||||
) { }
|
||||
) {}
|
||||
|
||||
async changePasswordAndRotateUserKey(
|
||||
currentMasterPassword: string,
|
||||
@@ -57,7 +57,7 @@ export class DefaultUserKeyRotationService implements UserKeyRotationService {
|
||||
old_password: currentMasterPassword,
|
||||
password: newMasterPassword,
|
||||
hint: hint,
|
||||
}
|
||||
},
|
||||
},
|
||||
trusted_emergency_access_public_keys: trustedEmergencyAccessUserPublicKeys,
|
||||
trusted_organization_public_keys: trustedOrganizationPublicKeys,
|
||||
|
||||
Reference in New Issue
Block a user