Skip to content

Commit 96f7515

Browse files
committed
Add test for ARIA
1 parent 3953d84 commit 96f7515

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,22 @@ test('toXast', (t) => {
303303
t.end()
304304
})
305305

306+
t.test('aria', (t) => {
307+
t.deepEqual(
308+
toXast(
309+
h('a', {ariaHidden: 'true', href: '#lorem-ipsum'}, [
310+
h('span.icon.icon-link')
311+
])
312+
),
313+
x('a', {xmlns: ns.html, 'aria-hidden': 'true', href: '#lorem-ipsum'}, [
314+
x('span', {class: 'icon icon-link'})
315+
]),
316+
'should support aria'
317+
)
318+
319+
t.end()
320+
})
321+
306322
t.test('svg', (t) => {
307323
t.deepEqual(
308324
toXast(

0 commit comments

Comments
 (0)