Skip to main content
Commit4d9732a83c6c
9 lines · 403 BBlameRaw
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");