diff --git a/apps/dokploy/__test__/wss/authorize.test.ts b/apps/dokploy/__test__/wss/authorize.test.ts index 24677330d..1b93b9f87 100644 --- a/apps/dokploy/__test__/wss/authorize.test.ts +++ b/apps/dokploy/__test__/wss/authorize.test.ts @@ -69,9 +69,9 @@ describe("canAccessDockerOverWss", () => { mockHasPermission.mockResolvedValue(false); mockGetAccessibleServerIds.mockResolvedValue(new Set()); mockCheckServiceAccess.mockResolvedValue(undefined); - expect(await canAccessDockerOverWss(USER, SESSION, "srv-remote", "svc-1")).toBe( - true, - ); + expect( + await canAccessDockerOverWss(USER, SESSION, "srv-remote", "svc-1"), + ).toBe(true); // Service path is authoritative — it must not fall through to docker/server. expect(mockHasPermission).not.toHaveBeenCalled(); expect(mockGetAccessibleServerIds).not.toHaveBeenCalled();