From 117cfa1a8999f27315c3d0cbfe7069e1bce82fbc Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Sun, 19 Jul 2026 21:18:57 -0600 Subject: [PATCH] test(types): annotate server record without sshKey relation in redaction test --- apps/dokploy/__test__/server/server-sshkey-redaction.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/dokploy/__test__/server/server-sshkey-redaction.test.ts b/apps/dokploy/__test__/server/server-sshkey-redaction.test.ts index 001909955..90f73a7da 100644 --- a/apps/dokploy/__test__/server/server-sshkey-redaction.test.ts +++ b/apps/dokploy/__test__/server/server-sshkey-redaction.test.ts @@ -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); }); });