mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
add new types to tests
This commit is contained in:
@@ -7,16 +7,6 @@ describe("AccountSettings", () => {
|
||||
expect(AccountSettings.fromJSON(JSON.parse("{}"))).toBeInstanceOf(AccountSettings);
|
||||
});
|
||||
|
||||
it("should deserialize userSymKeyPin", () => {
|
||||
const accountSettings = new AccountSettings();
|
||||
accountSettings.userSymKeyPin = EncString.fromJSON("encrypted");
|
||||
const jsonObj = JSON.parse(JSON.stringify(accountSettings));
|
||||
const actual = AccountSettings.fromJSON(jsonObj);
|
||||
|
||||
expect(actual.userSymKeyPin).toBeInstanceOf(EncString);
|
||||
expect(actual.userSymKeyPin.encryptedString).toEqual("encrypted");
|
||||
});
|
||||
|
||||
it("should deserialize pinProtected", () => {
|
||||
const accountSettings = new AccountSettings();
|
||||
accountSettings.pinProtected = EncryptionPair.fromJSON<string, EncString>({
|
||||
|
||||
Reference in New Issue
Block a user