aboutsummaryrefslogtreecommitdiff
path: root/internal/reader/processor/processor_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/reader/processor/processor_test.go')
-rw-r--r--internal/reader/processor/processor_test.go9
1 files changed, 9 insertions, 0 deletions
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 := `<p> Some text with a <a href="http://example.org/"> link </a> </p>`
+ expected := `<p>Some text with a <a href="http://example.org/">link</a></p>`
+ result := minifyEntryContent(input)
+ if expected != result {
+ t.Errorf(`Unexpected result, got %q`, result)
+ }
+}