Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Moore <moorereason@gmail.com>2016-06-26 02:02:07 +0300
committerCameron Moore <moorereason@gmail.com>2016-06-26 02:02:07 +0300
commite3b162ccc6aa93fdd00b18795cd138a5b326ec1f (patch)
tree0b67d810ff0d2e97566a58f05b445c87b1acd781 /transform
parente2aea65170985d7428c468ce0591557ad95af884 (diff)
transform: Don't use helpers.StringToReader
Diffstat (limited to 'transform')
-rw-r--r--transform/hugogeneratorinject_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/transform/hugogeneratorinject_test.go b/transform/hugogeneratorinject_test.go
index 3f8b26de7..d37fea24e 100644
--- a/transform/hugogeneratorinject_test.go
+++ b/transform/hugogeneratorinject_test.go
@@ -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)