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:
parent
12321ec0e8
commit
8e94fa7975
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user