Skip to content

Commit

Permalink
revert(role-helpers.d.ts): rollback changes - CR
Browse files Browse the repository at this point in the history
  • Loading branch information
naorpeled committed Aug 12, 2023
1 parent 82436fa commit 5549cb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/role-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ test('getRoles returns expected roles for various dom nodes', () => {

test('prettyRoles ignores elements with a "generic" role', () => {
const {hiddenDivWithGenericRole} = setup()
expect(prettyRoles(hiddenDivWithGenericRole)).toEqual('')
expect(prettyRoles(hiddenDivWithGenericRole, {})).toEqual('')
})

test('logRoles calls console.log with output from prettyRoles', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/role-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function getRoles(container, {hidden = false} = {}) {
}, {})
}

function prettyRoles(dom, {hidden, includeDescription} = {}) {
function prettyRoles(dom, {hidden, includeDescription}) {
const roles = getRoles(dom, {hidden})
// We prefer to skip generic role, we don't recommend it
return Object.entries(roles)
Expand Down

0 comments on commit 5549cb9

Please sign in to comment.