Add SCUM Source RCON transport

This commit is contained in:
npc0-hue
2026-07-23 10:55:31 +08:00
parent ec96c22e4c
commit 742f96ea02
33 changed files with 1297 additions and 19 deletions
@@ -0,0 +1,17 @@
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");
});
});