import assert from "node:assert/strict";
import * as app from "./app.mjs";
assert.equal(app.slug(" Getting Started! "), "getting-started");
assert.equal(app.slug("Café Guide"), "cafe-guide");
assert.equal(app.search([{title: "Start", body: "Install the CLI"}], " cli ").length, 1);
assert.equal(app.search([{title: "Start", body: "Install"}], "missing").length, 0);
console.log("All checks passed");