/** * OA 进度人员行:cancelled(撤销/打回清待办)对齐或签 done →「无需处理」 * Spec: docs/superpowers/specs/2026-08-13-oa-progress-withdraw-cancelled-display-design.md */ import { describe, it } from 'node:test' import assert from 'node:assert/strict' import { formatProgressPersonLines } from './oa-progress-person-lines' describe('formatProgressPersonLines · cancelled', () => { it('maps cancelled to 无需处理 (mute, no timestamp)', () => { const lines = formatProgressPersonLines([ { nickName: '张主管', status: 'cancelled', commentText: '', timestamp: '2026-08-13 12:47:46' } ]) assert.deepEqual(lines, [ { body: '张主管 无需处理', timestamp: '', text: '张主管 无需处理', tone: 'mute' } ]) }) })