repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by admin
pi/agent/skills/optional/ascii-boxes/node-smoke.test.mjs
Rawimport assert from "node:assert/strict";
import { execFileSync } from "node:child_process";
import { test } from "node:test";
import { drawBox } from "./index.mjs";
test("exports draw boxes under node", () => {
assert.match(drawBox("node"), /┌/);
});
test("cli runs under node", () => {
const out = execFileSync(process.execPath, ["index.mjs", "draw", "node"], { encoding: "utf8" });
assert.match(out, /│ node │/);
});