[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-07-20 07:15:39 +00:00
committed by GitHub
parent eb1f11b908
commit 6cbc7a0031
+3 -3
View File
@@ -69,9 +69,9 @@ describe("canAccessDockerOverWss", () => {
mockHasPermission.mockResolvedValue(false); mockHasPermission.mockResolvedValue(false);
mockGetAccessibleServerIds.mockResolvedValue(new Set()); mockGetAccessibleServerIds.mockResolvedValue(new Set());
mockCheckServiceAccess.mockResolvedValue(undefined); mockCheckServiceAccess.mockResolvedValue(undefined);
expect(await canAccessDockerOverWss(USER, SESSION, "srv-remote", "svc-1")).toBe( expect(
true, await canAccessDockerOverWss(USER, SESSION, "srv-remote", "svc-1"),
); ).toBe(true);
// Service path is authoritative — it must not fall through to docker/server. // Service path is authoritative — it must not fall through to docker/server.
expect(mockHasPermission).not.toHaveBeenCalled(); expect(mockHasPermission).not.toHaveBeenCalled();
expect(mockGetAccessibleServerIds).not.toHaveBeenCalled(); expect(mockGetAccessibleServerIds).not.toHaveBeenCalled();