Analyze server-resolved document reviews with revision checks

This commit is contained in:
2026-09-06 09:49:30 +03:00
parent e49593be46
commit 742e05933e
11 changed files with 87 additions and 18 deletions
+7
View File
@@ -37,3 +37,10 @@ test('changed quantity, requirements and announcement invalidate reviewed source
test('legacy positional prices are not silently assigned to potentially changed source rows',()=>{
assert.deepEqual(restoreBidPrices({fiyatlar:{0:'15',1:'900'}}),{});
});
test('review revision changes invalidate the preparation source even with identical extracted rows',()=>{
const tender={ikn:'2026/1',items:[]};
const first={sourceReview:{humanReview:{documentId:'doc',revision:1,textHash:'same'}}};
const second={sourceReview:{humanReview:{documentId:'doc',revision:2,textHash:'same'}}};
assert.notEqual(bidSourceSnapshot(tender,first),bidSourceSnapshot(tender,second));
});