mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 10:43:35 +00:00
[PM-12045] search service activeuserstate (#13035)
* removing activeuserstate from search service
This commit is contained in:
@@ -3,8 +3,12 @@ import { mock } from "jest-mock-extended";
|
||||
import { BehaviorSubject, first, Subject } from "rxjs";
|
||||
|
||||
import { SearchService } from "@bitwarden/common/abstractions/search.service";
|
||||
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
|
||||
import { SendView } from "@bitwarden/common/tools/send/models/view/send.view";
|
||||
import { SendService } from "@bitwarden/common/tools/send/services/send.service.abstraction";
|
||||
import { UserId } from "@bitwarden/common/types/guid";
|
||||
|
||||
import { mockAccountServiceWith } from "../../../../../common/spec";
|
||||
|
||||
import { SendItemsService } from "./send-items.service";
|
||||
import { SendListFiltersService } from "./send-list-filters.service";
|
||||
@@ -30,6 +34,7 @@ describe("SendItemsService", () => {
|
||||
{ provide: SendService, useValue: sendServiceMock },
|
||||
{ provide: SendListFiltersService, useValue: sendListFiltersServiceMock },
|
||||
{ provide: SearchService, useValue: searchServiceMock },
|
||||
{ provide: AccountService, useValue: mockAccountServiceWith("UserId" as UserId) },
|
||||
SendItemsService,
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user