Skip to content

Commit

Permalink
fix(text): Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Skraye committed Apr 21, 2023
1 parent 343aee3 commit 230d2d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/features/parser-markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ export const testMarkdownParser = () => {
'[link1](./../01.foo.md)',
'[link1](../01.foo.md)',
'[link1](../../01.foo.md)',
'[link1](../../01.foo#bar.md)',
'[link1](../../01.foo.md#bar)',
'[link1](../../01.foo/file.md#bar)',
'[link1](../../01.foo.draft.md)',
'[link1](../../_foo.draft.md)'
].join('\n')
Expand All @@ -200,7 +201,8 @@ export const testMarkdownParser = () => {
expect(nodes.shift().props.href).toEqual('./../foo')
expect(nodes.shift().props.href).toEqual('../foo')
expect(nodes.shift().props.href).toEqual('../../foo')
expect(nodes.shift().props.href).toEqual('../../foobar')
expect(nodes.shift().props.href).toEqual('../../foo#bar')
expect(nodes.shift().props.href).toEqual('../../foo/file#bar')
expect(nodes.shift().props.href).toEqual('../../foo')
expect(nodes.shift().props.href).toEqual('../../_foo')
})
Expand Down

0 comments on commit 230d2d0

Please sign in to comment.