This commit is contained in:
@@ -43,6 +43,8 @@ test('exposure excludes stale snapshots and gaps; outcome evidence counts once',
|
||||
assert.equal(next.events.filter(e=>e.kind==='onlineSeconds').reduce((n,e)=>n+e.amount,0),120);
|
||||
assert.equal(next.events.filter(e=>e.kind==='intentObserved').length,1);
|
||||
assert.equal(observeInsights(s,next.cursor,now+90).events.length,0);
|
||||
for(const b of s.bots)b.world.at=now+185;
|
||||
assert.equal(observeInsights(s,next.cursor,now+185).events.filter(e=>e.kind==='onlineSeconds').reduce((n,e)=>n+e.amount,0),250);
|
||||
for(const b of s.bots)b.world.at=now+600;
|
||||
assert.equal(observeInsights(s,next.cursor,now+600).events.filter(e=>e.kind==='onlineSeconds').length,0);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user