summaryrefslogtreecommitdiffstats
path: root/hugolib/siteJSONEncode_test.go
diff options
context:
space:
mode:
authorbep <bjorn.erik.pedersen@gmail.com>2015-06-06 20:57:11 +0200
committerbep <bjorn.erik.pedersen@gmail.com>2015-06-06 20:57:13 +0200
commitbe44345272276264719ede32447ce62fa92aa508 (patch)
tree12fe72840bd28e2c21ab2358ffe911589d91473b /hugolib/siteJSONEncode_test.go
parentbeeae6ab69b0cbb4daba7a1044308bd157df77ab (diff)
Silence chatty JSON test
Diffstat (limited to 'hugolib/siteJSONEncode_test.go')
-rw-r--r--hugolib/siteJSONEncode_test.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/hugolib/siteJSONEncode_test.go b/hugolib/siteJSONEncode_test.go
index 7c4bb48e3..c040eb01b 100644
--- a/hugolib/siteJSONEncode_test.go
+++ b/hugolib/siteJSONEncode_test.go
@@ -2,7 +2,6 @@ package hugolib
import (
"encoding/json"
- "fmt"
"testing"
)
@@ -15,14 +14,11 @@ func TestEncodePage(t *testing.T) {
s := createTestSite(MENU_PAGE_SOURCES)
testSiteSetup(s, t)
- j, err := json.Marshal(s)
+ _, err := json.Marshal(s)
check(t, err)
- fmt.Println("Site as JSON", string(j))
- p, err := json.Marshal(s.Pages[0])
+ _, err = json.Marshal(s.Pages[0])
check(t, err)
- fmt.Println("Page as JSON", string(p))
-
}
func check(t *testing.T, err error) {