From fb075b60b5d8f74d157d12cf66e32fe9580cf3fe Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Tue, 23 Apr 2024 20:08:09 -0700 Subject: reader/processor: minifier is breaking HTML entry content --- internal/reader/processor/processor_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'internal/reader/processor/processor_test.go') diff --git a/internal/reader/processor/processor_test.go b/internal/reader/processor/processor_test.go index e99a566a..48ae2d6b 100644 --- a/internal/reader/processor/processor_test.go +++ b/internal/reader/processor/processor_test.go @@ -117,3 +117,12 @@ func TestIsRecentEntry(t *testing.T) { } } } + +func TestMinifyEntryContent(t *testing.T) { + input := `

Some text with a link

` + expected := `

Some text with a link

` + result := minifyEntryContent(input) + if expected != result { + t.Errorf(`Unexpected result, got %q`, result) + } +} -- cgit v1.2.3