import { describe, expect, it } from "vitest"; import sourceRCONCommandPanelSource from "./SourceRCONCommandPanel.tsx?raw"; describe("SourceRCONCommandPanel", () => { it("uses protected bridge dispatch without confirmation, transcript, or connection fields", () => { expect(sourceRCONCommandPanelSource).toContain("queueGameClientBridgeCommand"); expect(sourceRCONCommandPanelSource).toContain("scumManagementRCONCommandRequest"); expect(sourceRCONCommandPanelSource).toContain("scumAnnouncementCommand"); expect(sourceRCONCommandPanelSource).not.toContain("sendSourceRCONCommand"); expect(sourceRCONCommandPanelSource).not.toContain("ConfirmDialog"); expect(sourceRCONCommandPanelSource).not.toContain("operations."); expect(sourceRCONCommandPanelSource).not.toContain("transcript"); expect(sourceRCONCommandPanelSource).not.toContain("history"); expect(sourceRCONCommandPanelSource).not.toContain("password"); expect(sourceRCONCommandPanelSource).not.toContain("host"); }); });