1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

test: fixed release tests

This commit is contained in:
Carlos Alexandro Becker 2017-12-29 20:34:09 -02:00
parent 12321ec0e8
commit 8e94fa7975
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -60,9 +60,9 @@ func TestDescribeBodyNoDockerImagesNoBrews(t *testing.T) {
func TestDontEscapeHTML(t *testing.T) {
var changelog = "<h1>test</h1>"
var ctx = &context.Context{
ReleaseNotes: changelog,
}
var ctx = context.New(config.Project{})
ctx.ReleaseNotes = changelog
out, err := describeBody(ctx)
assert.NoError(t, err)
assert.Contains(t, out.String(), changelog)