diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-28 10:20:02 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-28 10:20:02 +0300 |
| commit | 61ebe59a088af0f758115e63340552f3bbac7c19 (patch) | |
| tree | 1e86f7e8a0ffb487b4831b1cedd414d7e336a9fd /internal/showcase/metadata_test.go | |
| parent | a2242a4f6e65434701e23827e02da71590365a58 (diff) | |
refactor(version): unify version tag detection across packages (gq)
Diffstat (limited to 'internal/showcase/metadata_test.go')
| -rw-r--r-- | internal/showcase/metadata_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/showcase/metadata_test.go b/internal/showcase/metadata_test.go index abc4664..e905755 100644 --- a/internal/showcase/metadata_test.go +++ b/internal/showcase/metadata_test.go @@ -59,6 +59,7 @@ func TestGetLatestTag_ReturnsTotalTagCount(t *testing.T) { writeAndCommit("README.md", "first", "first") runGit(t, repoPath, "tag", "notes") + runGit(t, repoPath, "tag", "1-beta") runGit(t, repoPath, "tag", "v1.0.0") writeAndCommit("README.md", "second", "second") @@ -74,8 +75,8 @@ func TestGetLatestTag_ReturnsTotalTagCount(t *testing.T) { if !hasReleases { t.Fatal("expected hasReleases to be true") } - if tagCount != 3 { - t.Fatalf("tagCount = %d, want %d", tagCount, 3) + if tagCount != 4 { + t.Fatalf("tagCount = %d, want %d", tagCount, 4) } } |
