Merge #156: look fiber customers up by link id (huguesdelamure)

Kept the capacity deals from #168 in the fast path: fiber-pair contracts
count as a sold trench in fiberUse(), and pending deals still skip revenue.
This commit is contained in:
Frederic Jung 2026-10-27 20:34:01 +01:00
commit c914f5d234
No known key found for this signature in database
7 changed files with 39 additions and 8 deletions

View file

@ -70,6 +70,8 @@ test('#168 a capacity conference brings big deals you can sign before you build'
assert.ok(ev("S.biz.find(b=>b.id===__o).live"), 'delivered on the next day');
assert.equal(ev("S.biz.find(b=>b.id===__o).link"), 'own1');
assert.equal(ev("pairFree(S.links.find(l=>l.id==='own1'))"), false, 'the trench is sold');
assert.equal(ev("pairFree(S.links.find(l=>l.id==='own1'),fiberUse())"), false, 'also with the per-day lookups');
assert.equal(ev("fiberOk(S.biz.find(b=>b.id===__o),linkIds())"), true);
assert.deepEqual(errors, []);
});