Skip to content

Commit

Permalink
test: Add test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 19, 2021
1 parent bf6e794 commit 9f8d918
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions __tests__/index.test.ts
Expand Up @@ -189,6 +189,11 @@ describe('rehype-attr test case', () => {
title: 'options="attr" - <code>',
markdown: 'This is the <code>content</code><!--rehype:style=color:pink;-->',
expected: 'This is the <code style="color:pink;">content</code><!--rehype:style=color:pink;-->',
},
{
title: 'options="attr" - <a>',
markdown: '<a href="https://github.com">github</a><!--rehype:rel=external&style=color:pink;&data-name=kenny-->',
expected: '<a href="https://github.com" rel="external" style="color:pink;" data-name="kenny">github</a><!--rehype:rel=external&style=color:pink;&data-name=kenny-->',
}
].forEach((data, idx) => {
it(data.title, async () => {
Expand Down

0 comments on commit 9f8d918

Please sign in to comment.