@@ -21,36 +21,37 @@ ruleTester.run('get-attribute', rule, {
2121 invalid : [
2222 {
2323 code : "el.getAttribute('SRC')" ,
24+ output : "el.getAttribute('src')" ,
2425 errors : [
2526 {
2627 message : 'Attributes should be lowercase and hyphen separated, or part of the SVG whitelist.' ,
2728 type : 'Literal'
2829 }
29- ] ,
30- output : "el.getAttribute('src')"
30+ ]
3131 } ,
3232 {
3333 code : "el.hasAttribute('SRC')" ,
34+ output : "el.hasAttribute('src')" ,
3435 errors : [
3536 {
3637 message : 'Attributes should be lowercase and hyphen separated, or part of the SVG whitelist.' ,
3738 type : 'Literal'
3839 }
39- ] ,
40- output : "el.hasAttribute('src')"
40+ ]
4141 } ,
4242 {
4343 code : "el.getAttribute('onClick')" ,
44+ output : "el.getAttribute('onclick')" ,
4445 errors : [
4546 {
4647 message : 'Attributes should be lowercase and hyphen separated, or part of the SVG whitelist.' ,
4748 type : 'Literal'
4849 }
49- ] ,
50- output : "el.getAttribute('onclick')"
50+ ]
5151 } ,
5252 {
5353 code : "el.getAttribute('viewbox')" ,
54+ output : null ,
5455 errors : [
5556 {
5657 message : 'Attributes should be lowercase and hyphen separated, or part of the SVG whitelist.' ,
@@ -60,6 +61,7 @@ ruleTester.run('get-attribute', rule, {
6061 } ,
6162 {
6263 code : "el.getAttribute('preserveaspectratio')" ,
64+ output : null ,
6365 errors : [
6466 {
6567 message : 'Attributes should be lowercase and hyphen separated, or part of the SVG whitelist.' ,
0 commit comments