Skip to content

Commit

Permalink
[PM-14421] Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-melton committed Jan 24, 2025
1 parent f9e181f commit 231fcdf
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe("AtRiskPasswordsComponent", () => {

let mockTasks$: BehaviorSubject<SecurityTask[]>;
let mockCiphers$: BehaviorSubject<CipherView[]>;
let mockOrg$: BehaviorSubject<Organization>;
let mockOrgs$: BehaviorSubject<Organization[]>;
let mockAutofillOnPageLoad$: BehaviorSubject<boolean>;
const setAutofillOnPageLoad = jest.fn();
const mockToastService = mock<ToastService>();
Expand All @@ -87,10 +87,12 @@ describe("AtRiskPasswordsComponent", () => {
name: "Item 2",
} as CipherView,
]);
mockOrg$ = new BehaviorSubject<Organization>({
id: "org",
name: "Org 1",
} as Organization);
mockOrgs$ = new BehaviorSubject<Organization[]>([
{
id: "org",
name: "Org 1",
} as Organization,
]);

mockAutofillOnPageLoad$ = new BehaviorSubject<boolean>(false);
setAutofillOnPageLoad.mockClear();
Expand All @@ -108,7 +110,7 @@ describe("AtRiskPasswordsComponent", () => {
{
provide: OrganizationService,
useValue: {
get$: () => mockOrg$,
organizations$: () => mockOrgs$,
},
},
{
Expand Down

0 comments on commit 231fcdf

Please sign in to comment.