feat(assets): refine inventory presentation and abnormal vehicle details
This commit is contained in:
@@ -27,3 +27,11 @@ test('completed movement retains its actual time and missing records stay distin
|
||||
assert.equal(completed.abnormalMove?.work, null);
|
||||
assert.equal(transformRow(row).abnormalMove, null);
|
||||
});
|
||||
|
||||
|
||||
test('applicant comes from the movement creator name and never falls back to contract manager', () => {
|
||||
const base = { ...row, abnormal_move_id: 'move-1' };
|
||||
assert.equal(transformRow({ ...base, abnormal_move_applicant: ' 测试申请人 ' }).abnormalMove?.applicant, '测试申请人');
|
||||
assert.equal(transformRow({ ...base, abnormal_move_applicant: ' ' }).abnormalMove?.applicant, null);
|
||||
assert.equal(transformRow(base).abnormalMove?.applicant, null);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user