Skip to content

Commit 1fe86b6

Browse files
committed
fix: update test case for image with empty alt attribute to include shouldPass flag
1 parent 0164425 commit 1fe86b6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/jest/rules/imgAltEmpty.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ describe( 'Image Alt Empty Validation', () => {
120120
{
121121
name: 'should fail for img with empty alt and no dimension attributes (cannot confirm tracking pixel without dimensions)',
122122
html: '<img src="maybe-tracker.gif" alt="">',
123-
},
124-
123+
shouldPass: false,
124+
},
125+
125126
// Button context - image with empty alt inside button with accessible name
126127
{
127128
name: 'should pass for img with empty alt inside button with aria-label',

0 commit comments

Comments
 (0)