mirror of
https://github.com/bitwarden/browser
synced 2026-02-06 11:43:51 +00:00
fix failing test
This commit is contained in:
@@ -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",
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user