Count pasted post URLs and advertise Studio POST rendering
wiki CI and deployment / verify-and-deploy (push) Failing after 14m41s

This commit is contained in:
2026-10-26 20:42:42 +08:00
parent 6ad2933548
commit 3fd3f0ec0a
4 changed files with 10 additions and 4 deletions
+5
View File
@@ -19,3 +19,8 @@ test('default order favors inbound links and filters the entire corpus before pa
assert.equal(first.total,26);assert.equal(first.rows.length,24);assert.equal(second.rows.length,2);assert.equal(second.nextCursor,null);assert.equal(new Set([...first.rows,...second.rows].map(r=>r.doc.id)).size,26);
assert.throws(()=>discoveryPage(filtered,'different','wanted',first.nextCursor!),InvalidDiscoveryCursor);assert.throws(()=>discoveryPage(filtered,'','wanted','bad'),InvalidDiscoveryCursor);
});
test('pasted full URLs count but disguised link labels and inline code do not',()=>{
const source=doc('b',{markdown:'http://8.211.154.134:18131/explore/a。\n\n[http://8.211.154.134:18131/explore/c](https://example.com)\n\n`http://8.211.154.134:18131/explore/c`'});
const refs=backlinksFor([doc('a'),source,doc('c')]);assert.equal(refs.get('a')?.length,1);assert.equal(refs.get('c')?.length,0);
});