Skip to content

Commit

Permalink
test: add keep html-linebreaks from description test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Huck committed Aug 9, 2024
1 parent 4d167d9 commit e90798e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/transformation/keepDescription_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ func TestKeepDescription_Transform(t *testing.T) {
sinkDescription: "bar",
expectedDescription: "Headline<h1>Headline2</h1>",
},
{
name: "keep html-linebreaks from description",
sourceDescription: "<h1>Headline2</h1><br><br/>ohai\r\n",
sinkDescription: "bar",
expectedDescription: "<h1>Headline2</h1><br><br/>ohai",
},
{
name: "truncates description after 4000 chars",
sourceDescription: strings.Repeat("a", 4000),
Expand Down

0 comments on commit e90798e

Please sign in to comment.