Skip to content

Commit 2b4160d

Browse files
committed
fixup! add regression test for query/anchor relative links
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
1 parent 03e8416 commit 2b4160d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/component/components/NcRichText/markown-rendering.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,8 @@ test.describe('links', () => {
462462
}
463463
testNoLink('no link to unknown protocols', { text: '[hello](other:proto)', name: 'hello' })
464464
testNoLink('no link to unresolved relative link (by router)', { text: '[hello](world)', name: 'hello' })
465+
testNoLink('no link to relative parameters', { text: '[hello](?parameters=1)', name: 'hello' })
466+
testNoLink('no link to relative anchor', { text: '[hello](#anchor)', name: 'hello' })
465467
})
466468

467469
test.describe('multiline code', () => {

0 commit comments

Comments
 (0)