mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-09 13:36:56 +02:00
parent
e8bdba5752
commit
5e0c55ac6b
@ -2,8 +2,8 @@ package release
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"html/template"
|
||||
"os/exec"
|
||||
"text/template"
|
||||
|
||||
"github.com/goreleaser/goreleaser/context"
|
||||
)
|
||||
|
@ -21,6 +21,17 @@ func TestDescribeBody(t *testing.T) {
|
||||
assert.Contains(out.String(), "Built with go version go1.8")
|
||||
}
|
||||
|
||||
func TestDontEscapeHTML(t *testing.T) {
|
||||
var assert = assert.New(t)
|
||||
var changelog = "<h1>test</h1>"
|
||||
var ctx = &context.Context{
|
||||
ReleaseNotes: changelog,
|
||||
}
|
||||
out, err := describeBody(ctx)
|
||||
assert.NoError(err)
|
||||
assert.Contains(changelog, out.String())
|
||||
}
|
||||
|
||||
func TestGoVersionFails(t *testing.T) {
|
||||
var assert = assert.New(t)
|
||||
var path = os.Getenv("PATH")
|
||||
|
Loading…
x
Reference in New Issue
Block a user