This commit is contained in:
zlwu committed 2026-08-13 14:31:57 +08:00
1 parent 0e1b750457
commit 8c49021d38
93 files changed
+22731 -12107

No files matched your search

@@ -0,0 +1,28 @@
/**
* 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'
}
])
})
})