This commit is contained in:
2026-08-11 18:43:56 +08:00
parent 6456278ec8
commit 6622815d6c
37 changed files with 739 additions and 205 deletions
+11
View File
@@ -0,0 +1,11 @@
import { describe, expect, it } from 'vitest'
import { truckAppointmentActionLabel, truckAppointmentStatusLabel } from './types'
describe('truck appointment status labels', () => {
it('translates status history without exposing backend enum values', () => {
expect(truckAppointmentStatusLabel('DISPATCHED')).toBe('已派车')
expect(truckAppointmentStatusLabel('NEW_STATUS')).toBe('未知状态')
expect(truckAppointmentActionLabel('DISPATCH')).toBe('确认派车')
expect(truckAppointmentActionLabel('NEW_ACTION')).toBe('状态更新')
})
})