Skip to content

Commit 3a1d75e

Browse files
committed
set output in tests
1 parent 131f3f5 commit 3a1d75e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/get-attribute.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ ruleTester.run('get-attribute', rule, {
2626
message: 'Attributes should be lowercase and hyphen separated, or part of the SVG whitelist.',
2727
type: 'Literal'
2828
}
29-
]
29+
],
30+
output: "el.getAttribute('src')"
3031
},
3132
{
3233
code: "el.hasAttribute('SRC')",
@@ -35,7 +36,8 @@ ruleTester.run('get-attribute', rule, {
3536
message: 'Attributes should be lowercase and hyphen separated, or part of the SVG whitelist.',
3637
type: 'Literal'
3738
}
38-
]
39+
],
40+
output: "el.hasAttribute('src')"
3941
},
4042
{
4143
code: "el.getAttribute('onClick')",
@@ -44,7 +46,8 @@ ruleTester.run('get-attribute', rule, {
4446
message: 'Attributes should be lowercase and hyphen separated, or part of the SVG whitelist.',
4547
type: 'Literal'
4648
}
47-
]
49+
],
50+
output: "el.getAttribute('onclick')"
4851
},
4952
{
5053
code: "el.getAttribute('viewbox')",

0 commit comments

Comments
 (0)