1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

refactor(processor): extract some functions into an utils.go file

This commit is contained in:
jvoisin 2025-06-18 22:27:18 +02:00 committed by Frédéric Guillot
parent 46b159ac58
commit fe4b00b9f8
4 changed files with 85 additions and 59 deletions

View file

@ -118,7 +118,7 @@ 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)
result := minifyContent(input)
if expected != result {
t.Errorf(`Unexpected result, got %q`, result)
}