mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 18:15:45 +00:00
transform: Don't use helpers.StringToReader
This commit is contained in:
1 parent
e2aea65170
commit
e3b162ccc6
1 file changed
+2
-3
@@ -15,9 +15,8 @@ package transform
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/spf13/hugo/helpers"
|
||||
)
|
||||
|
||||
func TestHugoGeneratorInject(t *testing.T) {
|
||||
@@ -46,7 +45,7 @@ func TestHugoGeneratorInject(t *testing.T) {
|
||||
{"</head>", "</head>"},
|
||||
{"<head>", "<head>\n\tMETA"},
|
||||
} {
|
||||
in := helpers.StringToReader(this.in)
|
||||
in := strings.NewReader(this.in)
|
||||
out := new(bytes.Buffer)
|
||||
|
||||
tr := NewChain(HugoGeneratorInject)
|
||||
|
||||
Reference in new issue
Block a user