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.

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

const css = readFileSync("app/globals.css", "utf8");

describe("immutable default wallpaper cache keys", () => {
  it.each(["aurora.webp", "aurora-dark.webp"])("%s URL changes with its image bytes", name => {
    const digest = createHash("sha256").update(readFileSync(`public/wallpapers/${name}`)).digest("hex").slice(0, 12);
    expect(css).toContain(`url("/wallpapers/${name}?v=${digest}")`);
    expect(css).not.toContain(`url("/wallpapers/${name}")`);
  });
});