feat(viewer): show document summary together with the original (TODO.md L5)
This commit is contained in:
@@ -143,11 +143,14 @@ def test_content_known_pair_maps_to_doc_content() -> None:
|
||||
)
|
||||
assert r.status_code == 200
|
||||
body = r.json()
|
||||
assert set(body) == {"source", "path", "title", "format", "content", "indexed_at", "chunks"}
|
||||
assert set(body) == {
|
||||
"source", "path", "title", "format", "summary", "content", "indexed_at", "chunks"
|
||||
}
|
||||
assert body["source"] == "Homelab"
|
||||
assert body["path"] == "notes/deep mark.md"
|
||||
assert body["title"] == "Deep Mark"
|
||||
assert body["format"] == "md"
|
||||
assert body["summary"] is None # markdown doc → no summary (phase 36)
|
||||
assert body["content"] == "# Deep Mark\n\nbody"
|
||||
assert body["indexed_at"] == "2026-08-22T01:02:03+00:00"
|
||||
assert body["chunks"] == 3
|
||||
|
||||
Reference in New Issue
Block a user