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.

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

describe("mobile full-height policy", () => {
  it("sizes the shell from the synchronized visual viewport token", () => {
    const surface = readFileSync(new URL("../components/desktop.tsx", import.meta.url), "utf8");
    const provider = readFileSync(new URL("./responsive-provider.tsx", import.meta.url), "utf8");
    expect(surface).toContain("--mso-visual-vh");
    expect(surface).not.toContain('className="relative h-dvh w-screen');
    expect(provider).toContain('window.visualViewport?.addEventListener("resize", schedule)');
    expect(provider).toContain('(orientation: portrait)');
  });
});