Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion seo-toolkit/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ test("renderLlmsFull inlines url + body per page", async () => {

test("collectFull respects the limit", async () => {
const { collectFull } = await import("./llms-full.mjs");
const pages = await collectFull("../notes", "https://example.com", 1);
const { join, dirname } = await import("node:path");
const { fileURLToPath } = await import("node:url");
const notes = join(dirname(fileURLToPath(import.meta.url)), "..", "notes");
const pages = await collectFull(notes, "https://example.com", 1);
assert.equal(pages.length, 1);
});

Expand Down
Loading