Skip to content

Commit 7cdfcfa

Browse files
committed
Fix codecoverage
1 parent 08c94ca commit 7cdfcfa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/__tests__/role.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ test('considers the computed visibility style not the parent', () => {
164164
// the following markup. This behavior might change depending on how
165165
// https://github.com/w3c/aria/issues/1055 is resolved.
166166
const {getByRole} = render(
167-
'<div style="visibility: hidden;"><ul style="visibility: visible;" /></div>',
167+
'<div style="visibility: hidden;"><main style="visibility: visible;"><ul /></main></div>',
168168
)
169169

170170
expect(getByRole('list')).not.toBeNull()

src/role-helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function getRoles(container, {hidden = false} = {}) {
132132
}, {})
133133
}
134134

135-
function prettyRoles(dom, {hidden = false} = {}) {
135+
function prettyRoles(dom, {hidden}) {
136136
const roles = getRoles(dom, {hidden})
137137

138138
return Object.entries(roles)

0 commit comments

Comments
 (0)