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:
commit
c914f5d234
7 changed files with 39 additions and 8 deletions
|
|
@ -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, []);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue