@@ -86,16 +86,16 @@ ruleTester.run('jsx-equals-spacing', rule, {
8686 } ,
8787 ] ) ,
8888
89- invalid : parsers . all ( [
90- {
89+ invalid : parsers . all ( [ ] . concat (
90+ parsers . skipDueToMultiErrorSorting ? [ ] : {
9191 code : '<App foo = {bar} />' ,
9292 output : '<App foo={bar} />' ,
9393 errors : [
9494 { messageId : 'noSpaceBefore' , type : 'JSXAttribute' } ,
9595 { messageId : 'noSpaceAfter' , type : 'JSXAttribute' } ,
9696 ] ,
9797 } ,
98- {
98+ parsers . skipDueToMultiErrorSorting ? [ ] : {
9999 code : '<App foo = {bar} />' ,
100100 output : '<App foo={bar} />' ,
101101 options : [ 'never' ] ,
@@ -116,7 +116,7 @@ ruleTester.run('jsx-equals-spacing', rule, {
116116 options : [ 'never' ] ,
117117 errors : [ { messageId : 'noSpaceAfter' , type : 'JSXAttribute' } ] ,
118118 } ,
119- {
119+ parsers . skipDueToMultiErrorSorting ? [ ] : {
120120 code : '<App foo= {bar} bar = {baz} />' ,
121121 output : '<App foo={bar} bar={baz} />' ,
122122 options : [ 'never' ] ,
@@ -126,7 +126,7 @@ ruleTester.run('jsx-equals-spacing', rule, {
126126 { messageId : 'noSpaceAfter' , type : 'JSXAttribute' } ,
127127 ] ,
128128 } ,
129- {
129+ parsers . skipDueToMultiErrorSorting ? [ ] : {
130130 code : '<App foo={bar} />' ,
131131 output : '<App foo = {bar} />' ,
132132 options : [ 'always' ] ,
@@ -147,7 +147,7 @@ ruleTester.run('jsx-equals-spacing', rule, {
147147 options : [ 'always' ] ,
148148 errors : [ { messageId : 'needSpaceBefore' , type : 'JSXAttribute' } ] ,
149149 } ,
150- {
150+ parsers . skipDueToMultiErrorSorting ? [ ] : {
151151 code : '<App foo={bar} bar ={baz} />' ,
152152 output : '<App foo = {bar} bar = {baz} />' ,
153153 options : [ 'always' ] ,
@@ -156,6 +156,6 @@ ruleTester.run('jsx-equals-spacing', rule, {
156156 { messageId : 'needSpaceAfter' , type : 'JSXAttribute' } ,
157157 { messageId : 'needSpaceAfter' , type : 'JSXAttribute' } ,
158158 ] ,
159- } ,
160- ] ) ,
159+ }
160+ ) ) ,
161161} ) ;
0 commit comments