mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
transform: Don't use helpers.StringToReader
This commit is contained in:
@@ -15,9 +15,8 @@ package transform
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/spf13/hugo/helpers"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHugoGeneratorInject(t *testing.T) {
|
func TestHugoGeneratorInject(t *testing.T) {
|
||||||
@@ -46,7 +45,7 @@ func TestHugoGeneratorInject(t *testing.T) {
|
|||||||
{"</head>", "</head>"},
|
{"</head>", "</head>"},
|
||||||
{"<head>", "<head>\n\tMETA"},
|
{"<head>", "<head>\n\tMETA"},
|
||||||
} {
|
} {
|
||||||
in := helpers.StringToReader(this.in)
|
in := strings.NewReader(this.in)
|
||||||
out := new(bytes.Buffer)
|
out := new(bytes.Buffer)
|
||||||
|
|
||||||
tr := NewChain(HugoGeneratorInject)
|
tr := NewChain(HugoGeneratorInject)
|
||||||
|
Reference in New Issue
Block a user