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:
@@ -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 = {
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user