Skip to content

Commit

Permalink
Add test for autolink
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Jul 15, 2024
1 parent 1f13bd9 commit d50e082
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1074,4 +1074,8 @@ test('react-markdown', async function (t) {
}
}
})

await t.test('should autolink and autoLink prop is set', function(){
assert.equal(renderToStaticMarkup(<Markdown children="This is a link https://google.com" autoLink/>), '<p>This is a link <a href="https://google.com">https://google.com</a></p>')
})
})

0 comments on commit d50e082

Please sign in to comment.