Skip to content

Commit cd129b6

Browse files
committed
add more tests for headings
1 parent c54fdba commit cd129b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/__tests__/role-helpers.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,10 @@ test.each([
228228
})
229229

230230
test('computeAriaLevel', () => {
231-
const {treeItem2, treeItem3} = setup()
231+
const {treeItem2, treeItem3, h1, h2, h3} = setup()
232232
expect(computeAriaLevel(treeItem2)).toBe(2)
233233
expect(computeAriaLevel(treeItem3)).toBe(3)
234+
expect(computeAriaLevel(h1)).toBe(1)
235+
expect(computeAriaLevel(h2)).toBe(2)
236+
expect(computeAriaLevel(h3)).toBe(3)
234237
})

0 commit comments

Comments
 (0)