From fe30d840703a67bf8df5a2a33b9c7f44836e88fd Mon Sep 17 00:00:00 2001 From: voommen-livefront Date: Wed, 29 Oct 2025 15:02:12 -0500 Subject: [PATCH] PM-27291 Preserve critical apps --- .../domain/risk-insights-type-guards.spec.ts | 18 +++++++++--------- .../domain/risk-insights-type-guards.ts | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/domain/risk-insights-type-guards.spec.ts b/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/domain/risk-insights-type-guards.spec.ts index 32505088818..f0c672b7317 100644 --- a/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/domain/risk-insights-type-guards.spec.ts +++ b/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/domain/risk-insights-type-guards.spec.ts @@ -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 = { diff --git a/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/domain/risk-insights-type-guards.ts b/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/domain/risk-insights-type-guards.ts index b1d2550d4fa..34a13ce9b9b 100644 --- a/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/domain/risk-insights-type-guards.ts +++ b/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/domain/risk-insights-type-guards.ts @@ -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 &&