fix(test): bind fleet statistics evidence without optional remarks

This commit is contained in:
2026-10-03 21:26:46 +08:00
parent 3987562890
commit 48faf43e37
2 changed files with 8 additions and 2 deletions
@@ -38,6 +38,12 @@ test('multi-stop costs retain full trip amounts and never infer source shares',
f.costs.expected.allocationMethod = 'SAME_ROUTE_PALLET_SPACES'
assert.throws(() => convert(f))
})
test('SHA-bound current artifact does not require optional trip remarks in the DEPART snapshot', () => {
const f = sample(); delete f.immutableDeparture.snapshot.trip.remark
assert.equal(convert(f).tripNo, f.tripNo)
f.costs.marker = 'OLD'
assert.throws(() => convert(f))
})
for (const [name, mutate] of [
['stale marker', f => { f.marker = 'OLD' }], ['stale run', f => { f.runId = 'old' }],
['unverified costs', f => { f.costs.status = 'CHECKING' }], ['wrong currency amount', f => { f.costs.expected.usd = '0' }],