mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -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 (
|
||||
"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) {
|
||||
|
|
Loading…
Reference in a new issue