import { describe, expect, it } from 'vitest' import { normalizeRewardReason } from '../reward' describe('normalizeRewardReason', () => { it('falls back when input is empty', () => { expect(normalizeRewardReason('')).toBe('未填写原因') }) it('trims input', () => { expect(normalizeRewardReason(' 重试补发 ')).toBe('重试补发') }) })