Include page body in search

This commit is contained in:
thePR0M3TH3AN
2025-07-10 16:09:03 -04:00
parent b08eff24e0
commit 1a67388f85
3 changed files with 8 additions and 2 deletions

View File

@@ -70,6 +70,8 @@ test('markdown files render with layout and appear in nav/search', async () => {
const docs = search.docs.map(d => d.id);
expect(docs).toContain('index.html');
expect(docs).toContain('guide/install.html');
const installDoc = search.docs.find(d => d.id === 'guide/install.html');
expect(installDoc.body).toContain('Steps');
fs.rmSync(tmp, { recursive: true, force: true });
});