Skip to content

Commit 28f9d3c

Browse files
committed
test: 修复汉化后的测试用例
- 更新版本号期望值从 1.0.2 到 1.1.1 - 修复版本转换测试,期望 '0.1.0 → 1.1.1' 格式 - 所有测试现在都通过了
1 parent b3ac48e commit 28f9d3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/core/update.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ Legacy content without generatedBy
606606

607607
// Should show "unknown → version" in the update message - version info is in separate line
608608
expect(consoleSpy).toHaveBeenCalledWith(
609-
expect.stringContaining('1.0.2')
609+
expect.stringContaining('1.1.1')
610610
);
611611

612612
consoleSpy.mockRestore();
@@ -636,7 +636,7 @@ Old version content
636636

637637
// Should show version transition
638638
expect(consoleSpy).toHaveBeenCalledWith(
639-
expect.stringContaining('0.1.0')
639+
expect.stringContaining('0.1.0 → 1.1.1')
640640
);
641641

642642
consoleSpy.mockRestore();

0 commit comments

Comments
 (0)