Skip to content

Commit 33c27c2

Browse files
author
Mayo
committed
added tests for svg attributes
1 parent d8d0a2f commit 33c27c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/lib/rules/no-unknown-property.js

+3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ ruleTester.run('no-unknown-property', rule, {
4848
{ code: '<img src="cat_keyboard.jpeg" alt="A cat sleeping on a keyboard" />' },
4949
{ code: '<input type="password" required />' },
5050
{ code: '<input ref={this.input} type="radio" />' },
51+
{ code: '<input key="bar" type="radio" />' },
5152
{ code: '<button disabled>You cannot click me</button>;' },
53+
{ code: '<svg key="lock" viewBox="box" fill={10} d="d" stroke={1} strokeWidth={2} strokeLinecap={3} strokeLinejoin={4} transform="something" clipRule="else" x1={5} x2="6" y1="7" y2="8"></svg>' },
54+
{ code: '<meta property="og:type" content="website" />' },
5255
// Case ignored attributes, for `charset` discussion see https://github.com/jsx-eslint/eslint-plugin-react/pull/1863
5356
{ code: '<meta charset="utf-8" />;' },
5457
{ code: '<meta charSet="utf-8" />;' },

0 commit comments

Comments
 (0)