fix: handle malformed document lists in preparation overview
This commit is contained in:
@@ -30,3 +30,8 @@ test('expired source takes priority over completion or manually moved Kanban sta
|
||||
assert.equal(summary.next.target,'source');
|
||||
assert.equal(summary.owner,'Atanmadı');
|
||||
});
|
||||
test('malformed document response is treated as empty instead of crashing the summary',()=>{
|
||||
assert.doesNotThrow(()=>preparationSummary(tender,{loading:false,error:null,documents:null},now));
|
||||
const summary=preparationSummary(tender,{loading:false,error:null,documents:null},now);
|
||||
assert.ok(summary.documentIssues.some(text=>text.includes('belge')));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user