1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 05:43:41 +00:00

[PM-22099] expose default collection in clients collection service (#15122)

* Add types

* rename types

* fix types

* fix model and tests
This commit is contained in:
Brandon Treston
2025-06-11 11:39:47 -04:00
committed by GitHub
parent d8c544fd65
commit 50cee3cd9a
6 changed files with 28 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ import { BehaviorSubject } from "rxjs";
// This import has been flagged as unallowed for this class. It may be involved in a circular dependency loop.
// eslint-disable-next-line no-restricted-imports
import { CollectionView } from "@bitwarden/admin-console/common";
import { CollectionTypes, CollectionView } from "@bitwarden/admin-console/common";
import { Organization } from "@bitwarden/common/admin-console/models/domain/organization";
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
@@ -35,6 +35,7 @@ const createMockCollection = (
hidePasswords: false,
manage: true,
assigned: true,
type: CollectionTypes.DefaultUserCollection,
canEditItems: jest.fn().mockReturnValue(canEdit),
canEdit: jest.fn(),
canDelete: jest.fn(),