diff --git a/test/basic_html_test.exs b/test/basic_html_test.exs index f525181..14d587c 100644 --- a/test/basic_html_test.exs +++ b/test/basic_html_test.exs @@ -5,6 +5,12 @@ defmodule HtmlSanitizeExScrubberBasicHTMLTest do HtmlSanitizeEx.basic_html(text) end + test "strips nothing" do + input = "This is an example of space eating." + expected = "This is an example of space eating." + assert expected == basic_html_sanitize(input) + end + test "strips everything except the allowed tags" do input = "

hello

" expected = "

hello code!

"