Skip to content

Commit 233dd1b

Browse files
test: add missing assets to github tests
1 parent a43d659 commit 233dd1b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

internal/server/handlers_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ func newGitHubClient() *github.Client {
3434
mock.WithRequestMatch(
3535
mock.GetReposReleasesByOwnerByRepo,
3636
[]*github.RepositoryRelease{
37-
{Draft: github.Bool(false), TagName: github.String("v1.0.0")},
38-
{Draft: github.Bool(false), TagName: github.String("v1.0.1")},
39-
{Draft: github.Bool(true), TagName: github.String("v2.0.0-beta")},
37+
{Draft: github.Bool(false), TagName: github.String("v1.0.0"), Assets: []*github.ReleaseAsset{{}}},
38+
{Draft: github.Bool(false), TagName: github.String("v1.0.1"), Assets: []*github.ReleaseAsset{{}}},
39+
{Draft: github.Bool(true), TagName: github.String("v2.0.0-beta"), Assets: []*github.ReleaseAsset{{}}},
4040
{
4141
Draft: github.Bool(false),
4242
TagName: github.String("v2.0.0"),
@@ -57,9 +57,11 @@ func newGitHubClient() *github.Client {
5757
mock.GetReposReleasesLatestByOwnerByRepo,
5858
&github.RepositoryRelease{
5959
TagName: github.String("v2.0.0"),
60+
Assets: []*github.ReleaseAsset{{}},
6061
},
6162
&github.RepositoryRelease{
6263
TagName: github.String("v3.0.0"),
64+
Assets: []*github.ReleaseAsset{{}},
6365
},
6466
),
6567
mock.WithRequestMatch(

0 commit comments

Comments
 (0)