mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +01:00
Fix vNextCollectiuonService tests (#11739)
This commit is contained in:
parent
d0ed9aaa5d
commit
903c215867
@ -47,7 +47,7 @@ describe("DefaultvNextCollectionService", () => {
|
|||||||
|
|
||||||
// Set up mock decryption
|
// Set up mock decryption
|
||||||
encryptService.decryptToUtf8
|
encryptService.decryptToUtf8
|
||||||
.calledWith(expect.any(EncString), expect.any(SymmetricCryptoKey))
|
.calledWith(expect.any(EncString), expect.any(SymmetricCryptoKey), expect.any(String))
|
||||||
.mockImplementation((encString, key) =>
|
.mockImplementation((encString, key) =>
|
||||||
Promise.resolve(encString.data.replace("ENC_", "DEC_")),
|
Promise.resolve(encString.data.replace("ENC_", "DEC_")),
|
||||||
);
|
);
|
||||||
@ -106,10 +106,12 @@ describe("DefaultvNextCollectionService", () => {
|
|||||||
expect(encryptService.decryptToUtf8).toHaveBeenCalledWith(
|
expect(encryptService.decryptToUtf8).toHaveBeenCalledWith(
|
||||||
expect.objectContaining(new EncString(collection1.name)),
|
expect.objectContaining(new EncString(collection1.name)),
|
||||||
orgKey1,
|
orgKey1,
|
||||||
|
expect.any(String),
|
||||||
);
|
);
|
||||||
expect(encryptService.decryptToUtf8).toHaveBeenCalledWith(
|
expect(encryptService.decryptToUtf8).toHaveBeenCalledWith(
|
||||||
expect.objectContaining(new EncString(collection2.name)),
|
expect.objectContaining(new EncString(collection2.name)),
|
||||||
orgKey2,
|
orgKey2,
|
||||||
|
expect.any(String),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user