计划勘误:cursor 测试的 wecom epoch 字面量错了整一年(1756116000 是 2025-08-25)

实现 Task 4 时逼出来的:那条断言期望 2026-08-25T10:00:00Z,而字面量落在 2025 —— 整套夹具都锚在
2026-08-25T10:00:00Z,改输入而不是改期望,才不会留下唯一一个锚在别的年份的夹具。
代码侧已在 83f65b2 修正,这里把计划文本对齐。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TM4kUBvekALu9qqmp7D3wr
This commit is contained in:
xcs
2026-08-26 00:14:53 +08:00
co-authored by Claude Fable 5
parent 83f65b2785
commit 58d6d778ea
+1 -1
View File
@@ -816,7 +816,7 @@ describe('摘要与解析', () => {
it('人读摘要;没拉过是 null', () => { it('人读摘要;没拉过是 null', () => {
expect(cursorSummary(null)).toBeNull(); expect(cursorSummary(null)).toBeNull();
expect(cursorSummary(imapCursor('7', 100))).toBe('UID 100 · validity 7'); expect(cursorSummary(imapCursor('7', 100))).toBe('UID 100 · validity 7');
expect(cursorSummary(wecomCursor(1756116000))).toBe('至 2026-08-25T10:00:00.000Z'); expect(cursorSummary(wecomCursor(1787652000))).toBe('至 2026-08-25T10:00:00.000Z');
}); });
it('从 jsonb 解回来:形状不对当没有游标(重锚),不抛', () => { it('从 jsonb 解回来:形状不对当没有游标(重锚),不抛', () => {
expect(parseCursor({ kind: 'imap', uidValidity: '7', lastUid: 3 })).toEqual(imapCursor('7', 3)); expect(parseCursor({ kind: 'imap', uidValidity: '7', lastUid: 3 })).toEqual(imapCursor('7', 3));