Skip to content

Commit

Permalink
Add convert test
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Aug 30, 2024
1 parent 06d2f9c commit 1f6b02f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libs/common/src/vault/models/domain/ssh-key.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ describe("SSHkey", () => {
);
});

it("Convert", () => {
const sshKey = new SSHKey(data);

expect(sshKey).toEqual({
privateKey: { encryptedString: "privateKey", encryptionType: 0 },
publicKey: { encryptedString: "publicKey", encryptionType: 0 },
keyFingerprint: { encryptedString: "keyFingerprint", encryptionType: 0 },
});
});

it("Convert from empty", () => {
const data = new SSHKeyData();
const sshKey = new SSHKey(data);
Expand Down

0 comments on commit 1f6b02f

Please sign in to comment.