1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-05 23:53:21 +00:00

Upgrade prettier (#409)

This commit is contained in:
Addison Beck
2024-01-27 15:56:40 -06:00
committed by GitHub
parent 5b7b68f1cb
commit 9c88e66a27
177 changed files with 1154 additions and 1093 deletions

View File

@@ -65,7 +65,7 @@ describe("ApiLogInStrategy", () => {
stateService,
twoFactorService,
environmentService,
keyConnectorService
keyConnectorService,
);
credentials = new ApiLogInCredentials(apiClientId, apiClientSecret);
@@ -86,7 +86,7 @@ describe("ApiLogInStrategy", () => {
apiTokenRequest.twoFactor.token == null &&
apiTokenRequest.captchaResponse == null
);
})
}),
);
});

View File

@@ -103,7 +103,7 @@ describe("LogInStrategy", () => {
logService,
stateService,
twoFactorService,
authService
authService,
);
credentials = new PasswordLogInCredentials(email, masterPassword);
});
@@ -134,7 +134,7 @@ describe("LogInStrategy", () => {
refreshToken: refreshToken,
},
},
})
}),
);
cryptoService.received(1).setEncKey(encKey);
cryptoService.received(1).setEncPrivateKey(privateKey);
@@ -230,7 +230,7 @@ describe("LogInStrategy", () => {
passwordTokenRequest.twoFactor.token === twoFactorToken &&
passwordTokenRequest.twoFactor.remember === false
);
})
}),
);
});
@@ -240,7 +240,7 @@ describe("LogInStrategy", () => {
credentials.twoFactor = new TokenRequestTwoFactor(
twoFactorProviderType,
twoFactorToken,
twoFactorRemember
twoFactorRemember,
);
await passwordLogInStrategy.logIn(credentials);
@@ -253,7 +253,7 @@ describe("LogInStrategy", () => {
passwordTokenRequest.twoFactor.token === twoFactorToken &&
passwordTokenRequest.twoFactor.remember === twoFactorRemember
);
})
}),
);
});
@@ -263,14 +263,14 @@ describe("LogInStrategy", () => {
email,
masterPasswordHash,
null,
null
null,
);
apiService.postIdentityToken(Arg.any()).resolves(identityTokenResponseFactory());
await passwordLogInStrategy.logInTwoFactor(
new TokenRequestTwoFactor(twoFactorProviderType, twoFactorToken, twoFactorRemember),
null
null,
);
apiService.received(1).postIdentityToken(
@@ -281,7 +281,7 @@ describe("LogInStrategy", () => {
passwordTokenRequest.twoFactor.token === twoFactorToken &&
passwordTokenRequest.twoFactor.remember === twoFactorRemember
);
})
}),
);
});
});

View File

@@ -24,8 +24,8 @@ const hashedPassword = "HASHED_PASSWORD";
const localHashedPassword = "LOCAL_HASHED_PASSWORD";
const preloginKey = new SymmetricCryptoKey(
Utils.fromB64ToArray(
"N2KWjlLpfi5uHjv+YcfUKIpZ1l+W+6HRensmIqD+BFYBf6N/dvFpJfWwYnVBdgFCK2tJTAIMLhqzIQQEUmGFgg=="
)
"N2KWjlLpfi5uHjv+YcfUKIpZ1l+W+6HRensmIqD+BFYBf6N/dvFpJfWwYnVBdgFCK2tJTAIMLhqzIQQEUmGFgg==",
),
);
const deviceId = Utils.newGuid();
@@ -76,7 +76,7 @@ describe("PasswordLogInStrategy", () => {
logService,
stateService,
twoFactorService,
authService
authService,
);
credentials = new PasswordLogInCredentials(email, masterPassword);
@@ -97,7 +97,7 @@ describe("PasswordLogInStrategy", () => {
passwordTokenRequest.twoFactor.token == null &&
passwordTokenRequest.captchaResponse == null
);
})
}),
);
});

View File

@@ -66,7 +66,7 @@ describe("SsoLogInStrategy", () => {
logService,
stateService,
twoFactorService,
keyConnectorService
keyConnectorService,
);
credentials = new SsoLogInCredentials(ssoCode, ssoCodeVerifier, ssoRedirectUrl, ssoOrgId);
});
@@ -87,7 +87,7 @@ describe("SsoLogInStrategy", () => {
ssoTokenRequest.twoFactor.provider == null &&
ssoTokenRequest.twoFactor.token == null
);
})
}),
);
});