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.

695 B
Raw Blame
import { readFile } from "node:fs/promises";
import { describe, expect, it } from "vitest";

describe("organization CLI contract", () => {
  it("routes org through the canonical organization API with revision checks", async () => {
    const state = await readFile("scripts/cli/commands-state.sh", "utf8"), org = await readFile("scripts/cli/organization.sh", "utf8"), commands = await readFile("scripts/cli/commands.sh", "utf8"), bin = await readFile("bin/mso", "utf8");
    expect(state).toContain('org)');
    expect(org).toContain('/api/v1/organization');
    expect(org).toContain('expected_revision');
    expect(commands).toContain('U_org=');
    expect(bin).toContain('org *');
  });
});