Add features across agents, collab, trust, indexes, and hyperbee.
Manual pass: task cancelTask, workflow topologicalOrder/fail/reset, collab kick/replay, trust trustedPeers and multisig TTL sweep, graph shortestPath, inverted topTerms, dedup filterNew, bee notifyBatch/seekVersion — all with tests. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -46,3 +46,16 @@ test('watch notify aliases listWatches', async (t) => {
|
||||
t.is(m.listWatches().length, 1)
|
||||
await m.close()
|
||||
})
|
||||
|
||||
test('notifyBatch', async (t) => {
|
||||
const m = new HyperP2PBeeRangeWatch()
|
||||
let hit = 0
|
||||
m.watchRange('a', 'z', () => { hit++ })
|
||||
const n = m.notifyBatch([
|
||||
{ key: 'b', value: 1 },
|
||||
{ key: 'c', value: 2 }
|
||||
])
|
||||
t.is(n, 2)
|
||||
t.is(hit, 2)
|
||||
await m.close()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user