mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-19 20:57:53 +02:00
test: fixed release tests
This commit is contained in:
parent
12321ec0e8
commit
8e94fa7975
@ -60,9 +60,9 @@ func TestDescribeBodyNoDockerImagesNoBrews(t *testing.T) {
|
|||||||
|
|
||||||
func TestDontEscapeHTML(t *testing.T) {
|
func TestDontEscapeHTML(t *testing.T) {
|
||||||
var changelog = "<h1>test</h1>"
|
var changelog = "<h1>test</h1>"
|
||||||
var ctx = &context.Context{
|
var ctx = context.New(config.Project{})
|
||||||
ReleaseNotes: changelog,
|
ctx.ReleaseNotes = changelog
|
||||||
}
|
|
||||||
out, err := describeBody(ctx)
|
out, err := describeBody(ctx)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
assert.Contains(t, out.String(), changelog)
|
assert.Contains(t, out.String(), changelog)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user