mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-21 13:55:33 +02:00
test(types): annotate server record without sshKey relation in redaction test
This commit is contained in:
@@ -36,8 +36,9 @@ describe("redactServerSshKey (server SSH private key disclosure guard)", () => {
|
||||
expect(redactServerSshKey(server)).toEqual(server);
|
||||
});
|
||||
|
||||
it("handles a record without an sshKey property at all", () => {
|
||||
const server = { serverId: "srv-3" };
|
||||
it("handles a record without a loaded sshKey relation", () => {
|
||||
// e.g. server.update returns the plain row where sshKey is not populated.
|
||||
const server: { serverId: string; sshKey?: null } = { serverId: "srv-3" };
|
||||
expect(redactServerSshKey(server)).toEqual(server);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user