1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-09 05:00:10 +00:00

fix failing tests

This commit is contained in:
jaasen-livefront
2025-08-11 16:30:47 -07:00
parent 44a6393e25
commit 3c5530c741
2 changed files with 4 additions and 2 deletions

View File

@@ -29,11 +29,12 @@ describe("AdditionalOptionsSectionComponent", () => {
let passwordRepromptEnabled$: BehaviorSubject<boolean>;
const getInitialCipherView = jest.fn(() => null);
const formStatusChange$ = new BehaviorSubject<"enabled" | "disabled">("enabled");
beforeEach(async () => {
getInitialCipherView.mockClear();
cipherFormProvider = mock<CipherFormContainer>({ getInitialCipherView });
cipherFormProvider = mock<CipherFormContainer>({ getInitialCipherView, formStatusChange$ });
passwordRepromptService = mock<PasswordRepromptService>();
passwordRepromptEnabled$ = new BehaviorSubject(true);
passwordRepromptService.enabled$ = passwordRepromptEnabled$;

View File

@@ -35,10 +35,11 @@ describe("AutofillOptionsComponent", () => {
let autofillSettingsService: MockProxy<AutofillSettingsServiceAbstraction>;
let platformUtilsService: MockProxy<PlatformUtilsService>;
const getInitialCipherView = jest.fn(() => null);
const formStatusChange$ = new BehaviorSubject<"enabled" | "disabled">("enabled");
beforeEach(async () => {
getInitialCipherView.mockClear();
cipherFormContainer = mock<CipherFormContainer>({ getInitialCipherView });
cipherFormContainer = mock<CipherFormContainer>({ getInitialCipherView, formStatusChange$ });
liveAnnouncer = mock<LiveAnnouncer>();
platformUtilsService = mock<PlatformUtilsService>();
domainSettingsService = mock<DomainSettingsService>();