mirror of
https://github.com/bitwarden/browser
synced 2026-02-09 05:00:10 +00:00
fix failing tests
This commit is contained in:
@@ -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$;
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user