From e0fa636b82476090653da5fd8e81f500469371d6 Mon Sep 17 00:00:00 2001 From: Nell Hardcastle Date: Wed, 24 Jan 2024 16:47:22 -0800 Subject: [PATCH] tests(app): Add example to Markdown tests Co-authored-by: Chris Markiewicz --- .../src/scripts/utils/__tests__/markdown.spec.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/openneuro-app/src/scripts/utils/__tests__/markdown.spec.tsx b/packages/openneuro-app/src/scripts/utils/__tests__/markdown.spec.tsx index c5ede5152..6ea155646 100644 --- a/packages/openneuro-app/src/scripts/utils/__tests__/markdown.spec.tsx +++ b/packages/openneuro-app/src/scripts/utils/__tests__/markdown.spec.tsx @@ -26,4 +26,10 @@ describe("Test component", () => { const { asFragment } = render({hrefExample}) expect(asFragment()).toMatchSnapshot() }) + it("filters close-break tags", () => { + const hrefExample = + '
sample text
' + const { asFragment } = render({hrefExample}) + expect(asFragment()).toMatchSnapshot() + }) })