import test from "node:test";
import assert from "node:assert/strict";
import { publicHostInfo } from "./host-info.js";

test("host info exposes only the PC display name", () => {
  assert.deepEqual(publicHostInfo(() => "DESKTOP-CODEX"), { name: "DESKTOP-CODEX" });
});

test("host info falls back to a generic name", () => {
  assert.deepEqual(publicHostInfo(() => "  "), { name: "Windows PC" });
});
