Skip to content

Commit

Permalink
Update HTML sanitizer spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Sep 12, 2024
1 parent 400110e commit 2b3be3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/ddg_apple_automation_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ def load_file(file)
expect(sanitize_html_and_replace_env_vars(content)).to eq("<h2>Hello, World!\n This is a test.</h2>")
end

it "preserves HTML-escaped characters" do
content = "<body>Hello -&gt; World!</body>"
expect(sanitize_html_and_replace_env_vars(content)).to eq("<body>Hello -&gt; World!</body>")
end

def sanitize_html_and_replace_env_vars(content)
Fastlane::Helper::DdgAppleAutomationHelper.sanitize_html_and_replace_env_vars(content)
end
Expand Down

0 comments on commit 2b3be3b

Please sign in to comment.