提交 ee378e2f 作者: Brian Tiger Chow

fix(test) tour content struct now exists

License: MIT
Signed-off-by: 's avatarBrian Tiger Chow <brian@perfmode.com>
上级 a0dab3a2
...@@ -9,12 +9,14 @@ import ( ...@@ -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)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论