Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
piqoni committed Jun 5, 2024
1 parent f59c80d commit cb89c42
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions web_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ import (

func TestSanitize(t *testing.T) {
unsanitizedComment := "Uncrewed, yes. <a href=\"https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Boeing_Orbital_Flight_Test_2\" rel=\"nofollow\">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Boeing_Orbital_Flight_Test_2</a>"

expectedComment := "Uncrewed, yes. https://en.wikipedia.org/wiki/Boeing_Orbital_Flight_Test_2"

// call sanitize
sanitizedComment := sanitize(unsanitizedComment)

// check if sanitized comment is equal to expected comment
Expand Down

0 comments on commit cb89c42

Please sign in to comment.