mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 02:40:39 +09:00
fix: address PR 3355 review regressions
This commit is contained in:
parent
dc94e3d1df
commit
b48be80d5d
6 changed files with 55 additions and 22 deletions
|
|
@ -155,4 +155,20 @@ describe("MarkdownBody", () => {
|
|||
expect(html).toContain("<code>PAP-1271</code>");
|
||||
expect(html).toContain("text-green-600");
|
||||
});
|
||||
|
||||
it("can opt out of issue reference linkification for offline previews", () => {
|
||||
const html = renderToStaticMarkup(
|
||||
<QueryClientProvider client={new QueryClient()}>
|
||||
<ThemeProvider>
|
||||
<MarkdownBody linkIssueReferences={false}>
|
||||
{"Depends on PAP-1271 and [manual link](PAP-1271)."}
|
||||
</MarkdownBody>
|
||||
</ThemeProvider>
|
||||
</QueryClientProvider>,
|
||||
);
|
||||
|
||||
expect(html).not.toContain('href="/issues/PAP-1271"');
|
||||
expect(html).toContain("Depends on PAP-1271");
|
||||
expect(html).toContain('href="PAP-1271"');
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue