优化
This commit is contained in:
@@ -165,6 +165,15 @@ describe('InboundTaskList measurement scope', () => {
|
||||
expect(source).toContain("if (!value) return '—'")
|
||||
})
|
||||
|
||||
it('shows the expected arrival as a date in both measurement and review lists', () => {
|
||||
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')
|
||||
|
||||
expect(source).toContain("date.toLocaleDateString('zh-CN')")
|
||||
expect(source).toContain('{{ formatDateOnly((row as InboundOrderSummary).expectedArrivalAt) }}')
|
||||
expect(source).toContain('{{ formatDate((row as InboundOrderSummary).measureCompletedAt) }}')
|
||||
expect(source).not.toContain('{{ formatDate((row as InboundOrderSummary).expectedArrivalAt) }}')
|
||||
})
|
||||
|
||||
it('renders first-leg business types with the shared Chinese labels', () => {
|
||||
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user