diff --git a/libs/vault/src/cipher-form/components/additional-options/additional-options-section.component.spec.ts b/libs/vault/src/cipher-form/components/additional-options/additional-options-section.component.spec.ts index 5b93a7bdefe..16588f92807 100644 --- a/libs/vault/src/cipher-form/components/additional-options/additional-options-section.component.spec.ts +++ b/libs/vault/src/cipher-form/components/additional-options/additional-options-section.component.spec.ts @@ -29,11 +29,12 @@ describe("AdditionalOptionsSectionComponent", () => { let passwordRepromptEnabled$: BehaviorSubject; const getInitialCipherView = jest.fn(() => null); + const formStatusChange$ = new BehaviorSubject<"enabled" | "disabled">("enabled"); beforeEach(async () => { getInitialCipherView.mockClear(); - cipherFormProvider = mock({ getInitialCipherView }); + cipherFormProvider = mock({ getInitialCipherView, formStatusChange$ }); passwordRepromptService = mock(); passwordRepromptEnabled$ = new BehaviorSubject(true); passwordRepromptService.enabled$ = passwordRepromptEnabled$; diff --git a/libs/vault/src/cipher-form/components/autofill-options/autofill-options.component.spec.ts b/libs/vault/src/cipher-form/components/autofill-options/autofill-options.component.spec.ts index ae40447a4ae..3654dc4fe18 100644 --- a/libs/vault/src/cipher-form/components/autofill-options/autofill-options.component.spec.ts +++ b/libs/vault/src/cipher-form/components/autofill-options/autofill-options.component.spec.ts @@ -35,10 +35,11 @@ describe("AutofillOptionsComponent", () => { let autofillSettingsService: MockProxy; let platformUtilsService: MockProxy; const getInitialCipherView = jest.fn(() => null); + const formStatusChange$ = new BehaviorSubject<"enabled" | "disabled">("enabled"); beforeEach(async () => { getInitialCipherView.mockClear(); - cipherFormContainer = mock({ getInitialCipherView }); + cipherFormContainer = mock({ getInitialCipherView, formStatusChange$ }); liveAnnouncer = mock(); platformUtilsService = mock(); domainSettingsService = mock();