Skip to content

Commit c1666a0

Browse files
committed
Fix coverage
1 parent eb7ad05 commit c1666a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/__tests__/ariaAttributes.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ test('`value.now` throws on unsupported roles', () => {
249249
test('`value.now: number` matches `aria-valuenow` on widgets', () => {
250250
const {getByRole} = renderIntoDocument(
251251
`<div>
252+
<button role="spinbutton" />
252253
<button role="spinbutton" aria-valuenow="5" />
253254
<button role="spinbutton" aria-valuenow="10" />
254255
</div>`,
@@ -269,6 +270,7 @@ test('`value.max` throws on unsupported roles', () => {
269270
test('`value.max: number` matches `aria-valuemax` on widgets', () => {
270271
const {getByRole} = renderIntoDocument(
271272
`<div>
273+
<button role="spinbutton" />
272274
<button role="spinbutton" aria-valuemax="5" />
273275
<button role="spinbutton" aria-valuemax="10" />
274276
</div>`,
@@ -289,6 +291,7 @@ test('`value.min` throws on unsupported roles', () => {
289291
test('`value.min: number` matches `aria-valuemin` on widgets', () => {
290292
const {getByRole} = renderIntoDocument(
291293
`<div>
294+
<button role="spinbutton" />
292295
<button role="spinbutton" aria-valuemin="5" />
293296
<button role="spinbutton" aria-valuemin="10" />
294297
</div>`,
@@ -309,6 +312,7 @@ test('`value.text` throws on unsupported roles', () => {
309312
test('`value.text: Matcher` matches `aria-valuetext` on widgets', () => {
310313
const {getAllByRole, getByRole} = renderIntoDocument(
311314
`<div>
315+
<button role="spinbutton" />
312316
<button role="spinbutton" aria-valuetext="zero" />
313317
<button role="spinbutton" aria-valuetext="few" />
314318
<button role="spinbutton" aria-valuetext="many" />

0 commit comments

Comments
 (0)