1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-03 02:03:53 +00:00

PM-27291 Preserve critical apps

This commit is contained in:
voommen-livefront
2025-10-29 15:02:12 -05:00
parent 66052b6dd3
commit fe30d84070
2 changed files with 12 additions and 12 deletions

View File

@@ -369,15 +369,15 @@ describe("Risk Insights Type Guards", () => {
expect(isMemberDetails(invalidData)).toBe(false);
});
it("should return false for empty userName", () => {
const invalidData = {
userGuid: "user-1",
userName: "",
email: "john@example.com",
cipherId: "cipher-1",
};
expect(isMemberDetails(invalidData)).toBe(false);
});
// it("should return false for empty userName", () => {
// const invalidData = {
// userGuid: "user-1",
// userName: "",
// email: "john@example.com",
// cipherId: "cipher-1",
// };
// expect(isMemberDetails(invalidData)).toBe(false);
// });
it("should return false for empty email", () => {
const invalidData = {

View File

@@ -48,9 +48,9 @@ export function isMemberDetails(obj: any): obj is MemberDetails {
typeof obj.userGuid === "string" &&
obj.userGuid.length > 0 &&
obj.userGuid.length <= MAX_STRING_LENGTH &&
typeof obj.userName === "string" &&
obj.userName.length > 0 &&
obj.userName.length <= MAX_STRING_LENGTH &&
// typeof obj.userName === "string" &&
// obj.userName.length > 0 &&
// obj.userName.length <= MAX_STRING_LENGTH &&
typeof obj.email === "string" &&
obj.email.length > 0 &&
obj.email.length <= MAX_STRING_LENGTH &&