Count pasted post URLs and advertise Studio POST rendering
wiki CI and deployment / verify-and-deploy (push) Failing after 14m41s
wiki CI and deployment / verify-and-deploy (push) Failing after 14m41s
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user