test: 修正小数测试命名为四段格式抛出异常

This commit is contained in:
2026-06-09 17:50:31 +08:00
parent 9cc0a96f68
commit 1871d0b665

View File

@@ -48,7 +48,7 @@ describe("parseSemver", () => {
it("负数抛出异常", () => { it("负数抛出异常", () => {
expect(() => parseSemver("-1.2.3")).toThrow("无效的版本号格式"); expect(() => parseSemver("-1.2.3")).toThrow("无效的版本号格式");
}); });
it("小数抛出异常", () => { it("四段格式抛出异常", () => {
expect(() => parseSemver("1.5.3.2")).toThrow("无效的版本号格式"); expect(() => parseSemver("1.5.3.2")).toThrow("无效的版本号格式");
}); });
}); });