import { describe, expect, it } from "vitest"; import sourceRCONCommandPanelSource from "./SourceRCONCommandPanel.tsx?raw"; describe("SourceRCONCommandPanel", () => { it("uses the typed dispatch API without confirmation, transcript, or connection fields", () => { expect(sourceRCONCommandPanelSource).toContain("sendSourceRCONCommand"); expect(sourceRCONCommandPanelSource).toContain("sourceRCONChatRequest"); expect(sourceRCONCommandPanelSource).toContain("sourceRCONRawCommandRequest"); 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"); }); });