mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 01:52:26 +08:00
fix(test) tour content struct now exists
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
@ -9,12 +9,14 @@ import (
|
|||||||
|
|
||||||
func TestParseTourTemplate(t *testing.T) {
|
func TestParseTourTemplate(t *testing.T) {
|
||||||
topic := &tour.Topic{
|
topic := &tour.Topic{
|
||||||
ID: "42",
|
ID: "42",
|
||||||
Title: "IPFS CLI test files",
|
Content: tour.Content{
|
||||||
Text: `
|
Title: "IPFS CLI test files",
|
||||||
|
Text: `
|
||||||
Welcome to the IPFS test files
|
Welcome to the IPFS test files
|
||||||
This is where we test our beautiful command line interfaces
|
This is where we test our beautiful command line interfaces
|
||||||
`,
|
`,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
err := fprintTourShow(&buf, topic)
|
err := fprintTourShow(&buf, topic)
|
||||||
|
Reference in New Issue
Block a user