Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

test(channels): avoid secret-like Discord fixture

Rahman5d6c1f471fc0
diff --git a/lib/channels/schema.test.ts b/lib/channels/schema.test.ts
index a70656ae..90d23e16 100644
--- a/lib/channels/schema.test.ts
+++ b/lib/channels/schema.test.ts
@@ -15,7 +15,7 @@ describe("channel schema", () => {
it("validates provider-specific targets", () => {
expect(validateTarget("telegram", "-100123456789")).toBe("-100123456789");
- expect(validateTarget("discord", "123456789012345678")).toBe("123456789012345678");
+ expect(validateTarget("discord", "123456789012345")).toBe("123456789012345");
expect(() => validateTarget("discord", "#general")).toThrow("invalid_discord_target");
});
});