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.

947 B
Raw Blame
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";

describe("Camoufox noVNC webroot", () => {
  it("serves distro assets through a runtime overlay with the metadata noVNC fetches", () => {
    const script = readFileSync(new URL("../../scripts/camoufox-vnc-service", import.meta.url), "utf8");
    expect(script).toContain('NOVNC_SOURCE="${CAMOUFOX_NOVNC_SOURCE:-/usr/share/novnc}"');
    expect(script).toContain("mso-camoufox-novnc");
    expect(script).toContain('NOVNC_WEBROOT/package.json');
    expect(script).toContain('websockify --web="$NOVNC_WEBROOT"');
    expect(script).not.toContain("websockify --web=/usr/share/novnc");
    expect(script).toContain('x11vnc -remote stop');
    expect(script).toContain("trap 'exit 0' TERM");
    expect(script).toContain('wait "$!"');
    expect(script).not.toContain("exec websockify");
    expect(script).not.toContain("trap cleanup EXIT INT TERM");
  });
});