Skip to content

Commit

Permalink
Fix failing test after dependency update
Browse files Browse the repository at this point in the history
The HTML generated from markdown has changed slightly. It doesn't seem
 to have a material impact, so I've updated the test with the new HTML
 that is produced.
  • Loading branch information
mtaylorgds committed Oct 31, 2024
1 parent 0b3e047 commit fe47326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/helpers/application_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
describe "#render_markdown" do
it "converts markdown to html" do
text = "This is some **bold** text with a [link](/a-page)"
expected_html = "\n<div class=\"gem-c-govspeak govuk-govspeak \" data-module=\"govspeak\">\n <p>This is some <strong>bold</strong> text with a <a href=\"/a-page\">link</a></p>\n\n</div>"
expected_html = "<div data-module=\"govspeak\" class=\"gem-c-govspeak govuk-govspeak govuk-!-margin-bottom-0\">\n <p>This is some <strong>bold</strong> text with a <a href=\"/a-page\">link</a></p>\n\n</div>"

expect(render_markdown(text)).to eq(expected_html)
end
Expand Down

0 comments on commit fe47326

Please sign in to comment.