fix(util): Major() behavior for major version (#1393)
This commit is contained in:
@@ -164,6 +164,10 @@ func Test_major(t *testing.T) {
|
||||
in: "",
|
||||
expected: "",
|
||||
},
|
||||
{
|
||||
in: "4",
|
||||
expected: "4",
|
||||
},
|
||||
{
|
||||
in: "4.1",
|
||||
expected: "4",
|
||||
|
||||
Reference in New Issue
Block a user