mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Silence chatty JSON test
This commit is contained in:
parent
beeae6ab69
commit
be44345272
1 changed files with 2 additions and 6 deletions
|
@ -2,7 +2,6 @@ package hugolib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -15,14 +14,11 @@ func TestEncodePage(t *testing.T) {
|
||||||
s := createTestSite(MENU_PAGE_SOURCES)
|
s := createTestSite(MENU_PAGE_SOURCES)
|
||||||
testSiteSetup(s, t)
|
testSiteSetup(s, t)
|
||||||
|
|
||||||
j, err := json.Marshal(s)
|
_, err := json.Marshal(s)
|
||||||
check(t, err)
|
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)
|
check(t, err)
|
||||||
fmt.Println("Page as JSON", string(p))
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func check(t *testing.T, err error) {
|
func check(t *testing.T, err error) {
|
||||||
|
|
Loading…
Reference in a new issue