Skip to content

Commit 951f34a

Browse files
committed
Linter: Fix html-img-require-alt tests
1 parent 2c73c77 commit 951f34a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/packages/linter/test/rules/html-img-require-alt.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe("html-img-require-alt", () => {
4747
})
4848

4949
test("fails for img with alt attribute without value", () => {
50-
expectError('The `alt` attribute has no value. Add `alt=""` for decorative images or `alt="description"` for informative images.')
50+
expectWarning('The `alt` attribute has no value. Add `alt=""` for decorative images or `alt="description"` for informative images.')
5151
assertOffenses('<img src="/avatar.jpg" alt>')
5252
})
5353
})

0 commit comments

Comments
 (0)