From 85ffd20221fcf978f55b7bd4e75f22923340f87d Mon Sep 17 00:00:00 2001 From: Evgeny Kuznetsov Date: Tue, 28 Jan 2020 00:45:33 +0300 Subject: remove redundant test --- main_test.go | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'main_test.go') diff --git a/main_test.go b/main_test.go index cde6e7b..6f2ea11 100644 --- a/main_test.go +++ b/main_test.go @@ -37,22 +37,6 @@ func helperLoadBytes(t *testing.T, name string) []byte { return bytes } -func TestCleanText(t *testing.T) { - about := helperLoadBytes(t, "about") - actual := cleanText(about) - golden := filepath.Join("testdata", t.Name()+".golden") - if *update { - if err := ioutil.WriteFile(golden, actual, 0644); err != nil { - t.Fatal(err) - } - } - expected, _ := ioutil.ReadFile(golden) - - if !bytes.Equal(actual, expected) { - t.Fail() - } -} - func TestFeed(t *testing.T) { page := helperLoadBytes(t, "episodes") page = cleanText(page) -- cgit v1.2.3