Commit 476aab95 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet

rm unused tests

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent 1065ae45
......@@ -2,7 +2,6 @@ package main
import (
"bytes"
"errors"
"testing"
"github.com/jbenet/go-ipfs/tour"
......@@ -24,48 +23,3 @@ This is where we test our beautiful command line interfaces
}
t.Log(buf.String())
}
func TestRenderTourOutputList(t *testing.T) {
t.Log(`Ensure we can successfully print the tour output when there's an
error and list of tour topics`)
listOutput := &tourOutput{
Error: errors.New("Topic 42 does not exist"),
Topics: []tour.Topic{
tour.Topic{
ID: "41",
Title: "Being one shy of the mark",
Text: "Poor thing.",
},
tour.Topic{
ID: "44",
Title: "Two shy of the mark",
Text: "Oh no.",
},
},
}
var list bytes.Buffer
if err := printTourOutput(&list, listOutput); err != nil {
t.Fatal(err)
}
t.Log(list.String())
}
func TestRenderTourOutputSingle(t *testing.T) {
t.Log(`
When there's just a single topic in the output, ensure we can render the
template`)
singleOutput := &tourOutput{
Topic: &tour.Topic{
ID: "42",
Title: "Informative!",
Text: "Compelling!",
},
}
var single bytes.Buffer
if err := printTourOutput(&single, singleOutput); err != nil {
t.Fatal(err)
}
t.Log(single.String())
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment