Skip to content

Commit

Permalink
Update tests related to comma-separated values
Browse files Browse the repository at this point in the history
Related to: <rehypejs/rehype#78>
Related to: <rehypejs/rehype#79>
  • Loading branch information
wooorm committed Nov 12, 2021
1 parent 64d3092 commit 5663ec8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,11 @@ test('hast-util-to-dom', (t) => {
'handles space-separated attributes correctly'
)

const img = 'data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA='
t.equal(
serializeNodeToHtmlString(
toDom(h('img', {srcSet: [`${img} 1x`, `${img} 2x`]}))
toDom(h('input', {type: 'file', accept: ['image/*', '.doc']}))
),
`<img srcset="${img} 1x, ${img} 2x" />`,
`<input type="file" accept="image/*, .doc" />`,
'handles comma-separated attributes correctly'
)

Expand Down

0 comments on commit 5663ec8

Please sign in to comment.