Skip to content

Commit

Permalink
tests(app): Add example to Markdown tests
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Markiewicz <markiewicz@stanford.edu>
  • Loading branch information
nellh and effigies authored Jan 25, 2024
1 parent 69b87d2 commit e0fa636
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ describe("Test <Markdown> component", () => {
const { asFragment } = render(<Markdown>{hrefExample}</Markdown>)
expect(asFragment()).toMatchSnapshot()
})
it("filters close-break tags", () => {
const hrefExample =
'<br>sample text</br>'
const { asFragment } = render(<Markdown>{hrefExample}</Markdown>)
expect(asFragment()).toMatchSnapshot()
})
})

0 comments on commit e0fa636

Please sign in to comment.