1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 11:43:51 +00:00

fix failing test

This commit is contained in:
jaasen-livefront
2025-08-12 16:08:18 -07:00
parent c5f6106090
commit 529e96dceb

View File

@@ -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<CipherFormContainer>({
getInitialCipherView,
formStatusChange$,
website: "example.com",
});