mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
* Add Helper For Preparing a Record For Use in `forkJoin` * Update & Test CryptoService Changes * Delete Unused Code * Update DeviceTrustService * Update CipherService * Make `userPublicKey$` Public * Rename convertValues File * Update libs/common/src/platform/abstractions/crypto.service.ts Co-authored-by: Andreas Coroiu <acoroiu@bitwarden.com> * Add `convertValues` Tests * Add Doc Comments * Convert to `function`'s Co-authored-by: Andreas Coroiu <acoroiu@bitwarden.com> * Fix Test Typos * Add param doc * Update Test Name * Add `@throws` Docs --------- Co-authored-by: Andreas Coroiu <acoroiu@bitwarden.com>
19 lines
576 B
TypeScript
19 lines
576 B
TypeScript
import { makeEncString } from "../../../../spec";
|
|
|
|
import { USER_ENCRYPTED_PROVIDER_KEYS } from "./provider-keys.state";
|
|
|
|
describe("encrypted provider keys", () => {
|
|
const sut = USER_ENCRYPTED_PROVIDER_KEYS;
|
|
|
|
it("should deserialize encrypted provider keys", () => {
|
|
const encryptedProviderKeys = {
|
|
"provider-id-1": makeEncString().encryptedString,
|
|
"provider-id-2": makeEncString().encryptedString,
|
|
};
|
|
|
|
const result = sut.deserializer(JSON.parse(JSON.stringify(encryptedProviderKeys)));
|
|
|
|
expect(result).toEqual(encryptedProviderKeys);
|
|
});
|
|
});
|