diff --git a/sv/git_test.go b/sv/git_test.go index 7b96394..8771d57 100644 --- a/sv/git_test.go +++ b/sv/git_test.go @@ -13,8 +13,8 @@ func Test_parseTagsOutput(t *testing.T) { want []GitTag wantErr bool }{ - {"with date", "2020-05-01 18:00:00 -0300#1.0.0", []GitTag{GitTag{Name: "1.0.0", Date: date("2020-05-01 18:00:00 -0300")}}, false}, - {"without date", "#1.0.0", []GitTag{GitTag{Name: "1.0.0", Date: time.Time{}}}, false}, + {"with date", "2020-05-01 18:00:00 -0300#1.0.0", []GitTag{{Name: "1.0.0", Date: date("2020-05-01 18:00:00 -0300")}}, false}, + {"without date", "#1.0.0", []GitTag{{Name: "1.0.0", Date: time.Time{}}}, false}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {