aboutsummaryrefslogtreecommitdiff
path: root/main_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/main_test.go b/main_test.go
index 2a2c3b8..4f465f3 100644
--- a/main_test.go
+++ b/main_test.go
@@ -69,7 +69,7 @@ func assertGolden(t *testing.T, actual []byte, golden string) {
}
if !bytes.Equal(actual, expected) {
- t.Fail()
+ t.Fatal("golden data doesn't match")
}
}
@@ -380,3 +380,12 @@ func TestParseErrors(t *testing.T) {
}
}
}
+
+func TestProcessEpisodeDesc(t *testing.T) {
+ page := helperLoadBytes(t, "blues")
+ got, err := processEpisodeDesc(page)
+ if err != nil {
+ t.Fatal(err)
+ }
+ assertGolden(t, []byte(got), filepath.Join("testdata", "blues.golden"))
+}