Fix test for new tests
This commit is contained in:
@@ -277,7 +277,7 @@ var _ = Describe("Check Command", func() {
|
|||||||
|
|
||||||
response, err := command.Run(resource.CheckRequest{
|
response, err := command.Run(resource.CheckRequest{
|
||||||
Version: resource.Version{},
|
Version: resource.Version{},
|
||||||
Source: resource.Source{Drafts: true},
|
Source: resource.Source{Drafts: true, PreRelease: false},
|
||||||
})
|
})
|
||||||
Ω(err).ShouldNot(HaveOccurred())
|
Ω(err).ShouldNot(HaveOccurred())
|
||||||
|
|
||||||
|
@@ -17,6 +17,7 @@ func newRepositoryRelease(id int, version string) *github.RepositoryRelease {
|
|||||||
return &github.RepositoryRelease{
|
return &github.RepositoryRelease{
|
||||||
TagName: github.String(version),
|
TagName: github.String(version),
|
||||||
Draft: github.Bool(false),
|
Draft: github.Bool(false),
|
||||||
|
Prerelease: github.Bool(false),
|
||||||
ID: github.Int(id),
|
ID: github.Int(id),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,6 +26,7 @@ func newDraftRepositoryRelease(id int, version string) *github.RepositoryRelease
|
|||||||
return &github.RepositoryRelease{
|
return &github.RepositoryRelease{
|
||||||
TagName: github.String(version),
|
TagName: github.String(version),
|
||||||
Draft: github.Bool(true),
|
Draft: github.Bool(true),
|
||||||
|
Prerelease: github.Bool(false),
|
||||||
ID: github.Int(id),
|
ID: github.Int(id),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -32,6 +34,7 @@ func newDraftRepositoryRelease(id int, version string) *github.RepositoryRelease
|
|||||||
func newDraftWithNilTagRepositoryRelease(id int) *github.RepositoryRelease {
|
func newDraftWithNilTagRepositoryRelease(id int) *github.RepositoryRelease {
|
||||||
return &github.RepositoryRelease{
|
return &github.RepositoryRelease{
|
||||||
Draft: github.Bool(true),
|
Draft: github.Bool(true),
|
||||||
|
Prerelease: github.Bool(false),
|
||||||
ID: github.Int(id),
|
ID: github.Int(id),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user