From 529e96dceb308bcb58d0109a97e7b97d5d13746a Mon Sep 17 00:00:00 2001 From: jaasen-livefront Date: Tue, 12 Aug 2025 16:08:18 -0700 Subject: [PATCH] fix failing test --- .../login-details-section.component.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/vault/src/cipher-form/components/login-details-section/login-details-section.component.spec.ts b/libs/vault/src/cipher-form/components/login-details-section/login-details-section.component.spec.ts index c5b1fc7897b..2bac81ffe36 100644 --- a/libs/vault/src/cipher-form/components/login-details-section/login-details-section.component.spec.ts +++ b/libs/vault/src/cipher-form/components/login-details-section/login-details-section.component.spec.ts @@ -3,6 +3,7 @@ import { Component } from "@angular/core"; import { ComponentFixture, fakeAsync, TestBed, tick } from "@angular/core/testing"; import { By } from "@angular/platform-browser"; import { mock, MockProxy } from "jest-mock-extended"; +import { BehaviorSubject } from "rxjs"; import { AuditService } from "@bitwarden/common/abstractions/audit.service"; import { EventCollectionService } from "@bitwarden/common/abstractions/event/event-collection.service"; @@ -42,11 +43,13 @@ describe("LoginDetailsSectionComponent", () => { const collect = jest.fn().mockResolvedValue(null); const getInitialCipherView = jest.fn(() => null); + const formStatusChange$ = new BehaviorSubject<"enabled" | "disabled">("enabled"); beforeEach(async () => { getInitialCipherView.mockClear(); cipherFormContainer = mock({ getInitialCipherView, + formStatusChange$, website: "example.com", });