1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-16 20:15:08 +08:00
Files
kubo/cmd/ipfs/tour_test.go
Ho-Sheng Hsiao bf22aeec0a Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00

28 lines
446 B
Go

package main
import (
"bytes"
"testing"
"github.com/ipfs/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())
}