diff --git a/internal/reader/sanitizer/sanitizer_test.go b/internal/reader/sanitizer/sanitizer_test.go index 76441042..53819bdf 100644 --- a/internal/reader/sanitizer/sanitizer_test.go +++ b/internal/reader/sanitizer/sanitizer_test.go @@ -818,13 +818,23 @@ func TestReplaceYoutubeURLWithCustomURL(t *testing.T) { } } -func TestReplaceIframeVimedoDNTURL(t *testing.T) { +func TestVimeoIframeRewriteWithQueryString(t *testing.T) { input := `` expected := `` output := SanitizeHTMLWithDefaultOptions("http://example.org/", input) if expected != output { - t.Errorf(`Wrong output: "%s" != "%s"`, expected, output) + t.Errorf(`Wrong output: %q != %q`, expected, output) + } +} + +func TestVimeoIframeRewriteWithoutQueryString(t *testing.T) { + input := `` + expected := `` + output := SanitizeHTMLWithDefaultOptions("http://example.org/", input) + + if expected != output { + t.Errorf(`Wrong output: %q != %q`, expected, output) } }