fix(assets): show inventory operations managers and bump v1.1.19
This commit is contained in:
@@ -41,3 +41,13 @@ test('one Excel workbook contains statistics and all details in two named sheets
|
||||
const empty = await createAnalysisWorkbook([], []);
|
||||
assert.deepEqual(empty.SheetNames, ['统计表', '详情表']);
|
||||
});
|
||||
|
||||
test('inventory export uses assigned operations managers and a dash when unset', () => {
|
||||
const vehicles = ['张三、李四', null, ' '].map(opsManagers => ({
|
||||
opsManagers, customerManager: '业务负责人', customerName: '客户', status: 'Inventory',
|
||||
} as VehicleListItem));
|
||||
const rows = vehicleExportRows(vehicles, true);
|
||||
assert.deepEqual(rows.map(row => row.运维负责人), ['张三、李四', '-', '-']);
|
||||
assert.ok(rows.every(row => !('业务负责人' in row) && !('客户' in row)));
|
||||
assert.equal(vehicleExportRows(vehicles)[0].业务负责人, '业务负责人');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user