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:
parent
46b159ac58
commit
fe4b00b9f8
4 changed files with 85 additions and 59 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue