kubo/cmd/ipfs2/tour_test.go
Brian Tiger Chow ee378e2fbd fix(test) tour content struct now exists
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:31:06 -08:00

28 lines
448 B
Go

package main
import (
"bytes"
"testing"
"github.com/jbenet/go-ipfs/tour"
)
func TestParseTourTemplate(t *testing.T) {
topic := &tour.Topic{
ID: "42",
Content: tour.Content{
Title: "IPFS CLI test files",
Text: `
Welcome to the IPFS test files
This is where we test our beautiful command line interfaces
`,
},
}
var buf bytes.Buffer
err := fprintTourShow(&buf, topic)
if err != nil {
t.Fatal(err)
}
t.Log(buf.String())
}