mirror of
https://github.com/bitwarden/browser
synced 2026-02-27 10:03:23 +00:00
UPdate tests
This commit is contained in:
@@ -1278,9 +1278,7 @@ describe("Cipher Service", () => {
|
||||
});
|
||||
|
||||
it("should use SDK to list organization ciphers when feature flag is enabled", async () => {
|
||||
configService.getFeatureFlag
|
||||
.calledWith(FeatureFlag.PM27632_SdkCipherCrudOperations)
|
||||
.mockResolvedValue(true);
|
||||
sdkCrudFeatureFlag$.next(true);
|
||||
|
||||
const mockCipherView1 = new CipherView();
|
||||
mockCipherView1.name = "Test Cipher 1";
|
||||
@@ -1303,9 +1301,7 @@ describe("Cipher Service", () => {
|
||||
});
|
||||
|
||||
it("should use SDK with includeMemberItems=false when not provided", async () => {
|
||||
configService.getFeatureFlag
|
||||
.calledWith(FeatureFlag.PM27632_SdkCipherCrudOperations)
|
||||
.mockResolvedValue(true);
|
||||
sdkCrudFeatureFlag$.next(true);
|
||||
|
||||
const sdkServiceSpy = jest
|
||||
.spyOn(cipherSdkService, "getAllFromApiForOrganization")
|
||||
|
||||
Reference in New Issue
Block a user