@@ -86,16 +86,16 @@ ruleTester.run('jsx-equals-spacing', rule, {
86
86
} ,
87
87
] ) ,
88
88
89
- invalid : parsers . all ( [
90
- {
89
+ invalid : parsers . all ( [ ] . concat (
90
+ parsers . skipDueToMultiErrorSorting ? [ ] : {
91
91
code : '<App foo = {bar} />' ,
92
92
output : '<App foo={bar} />' ,
93
93
errors : [
94
94
{ messageId : 'noSpaceBefore' , type : 'JSXAttribute' } ,
95
95
{ messageId : 'noSpaceAfter' , type : 'JSXAttribute' } ,
96
96
] ,
97
97
} ,
98
- {
98
+ parsers . skipDueToMultiErrorSorting ? [ ] : {
99
99
code : '<App foo = {bar} />' ,
100
100
output : '<App foo={bar} />' ,
101
101
options : [ 'never' ] ,
@@ -116,7 +116,7 @@ ruleTester.run('jsx-equals-spacing', rule, {
116
116
options : [ 'never' ] ,
117
117
errors : [ { messageId : 'noSpaceAfter' , type : 'JSXAttribute' } ] ,
118
118
} ,
119
- {
119
+ parsers . skipDueToMultiErrorSorting ? [ ] : {
120
120
code : '<App foo= {bar} bar = {baz} />' ,
121
121
output : '<App foo={bar} bar={baz} />' ,
122
122
options : [ 'never' ] ,
@@ -126,7 +126,7 @@ ruleTester.run('jsx-equals-spacing', rule, {
126
126
{ messageId : 'noSpaceAfter' , type : 'JSXAttribute' } ,
127
127
] ,
128
128
} ,
129
- {
129
+ parsers . skipDueToMultiErrorSorting ? [ ] : {
130
130
code : '<App foo={bar} />' ,
131
131
output : '<App foo = {bar} />' ,
132
132
options : [ 'always' ] ,
@@ -147,7 +147,7 @@ ruleTester.run('jsx-equals-spacing', rule, {
147
147
options : [ 'always' ] ,
148
148
errors : [ { messageId : 'needSpaceBefore' , type : 'JSXAttribute' } ] ,
149
149
} ,
150
- {
150
+ parsers . skipDueToMultiErrorSorting ? [ ] : {
151
151
code : '<App foo={bar} bar ={baz} />' ,
152
152
output : '<App foo = {bar} bar = {baz} />' ,
153
153
options : [ 'always' ] ,
@@ -156,6 +156,6 @@ ruleTester.run('jsx-equals-spacing', rule, {
156
156
{ messageId : 'needSpaceAfter' , type : 'JSXAttribute' } ,
157
157
{ messageId : 'needSpaceAfter' , type : 'JSXAttribute' } ,
158
158
] ,
159
- } ,
160
- ] ) ,
159
+ }
160
+ ) ) ,
161
161
} ) ;
0 commit comments