test(order): compare Excel error row as numeric cell

This commit is contained in:
2026-10-02 21:49:48 +08:00
parent 8c1905418e
commit afb02a0a1b
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -2408,7 +2408,7 @@ async function orderExcelImportModule() {
assertEqual(status, 200, 'error workbook download')
const rows = orderSheetRows(orderZipRead(bytes))
assertEqual(rows.length, 2, 'header and exactly one failed row')
assertEqual(rows[1].cells[0].text, '3', 'actual Excel error row')
assertEqual(Number(rows[1].cells[0].text), 3, 'actual Excel error row')
assertEqual(rows[1].cells[1].text, 'A0422', 'error report code')
assertEqual(rows[1].cells[2].text, errorData.result.items[0].errorMessage, 'error report exact reason')
}, ({ bytes }) => ({ sizeBytes: bytes.length, sha256: createHash('sha256').update(bytes).digest('hex') }))