Skip to content

Commit f148198

Browse files
committed
Minor: '\n' handling is more consistent in logRoles
1 parent 3c5b545 commit f148198

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/__tests__/__snapshots__/role-helpers.js.snap

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,5 @@ textbox -----------------------------------
159159
160160
<textarea
161161
data-testid="a-textarea"
162-
/>
163-
164-
165-
"
162+
/>"
166163
`;

src/role-helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ function logRoles(container) {
8282
.map(el => debugDOM(el.cloneNode(false)))
8383
.join('\n\n')
8484

85-
return `${role} ${delimeterBar}\n\n${elementsString}\n\n\n`
85+
return `${role} ${delimeterBar}\n\n${elementsString}`
8686
})
87-
.join('')
87+
.join('\n\n\n')
8888
}
8989

9090
export {getRoles, logRoles, getImplicitAriaRoles}

0 commit comments

Comments
 (0)