@@ -137,10 +137,7 @@ describe('buildConfigDefinitions', () => {
137137 const mockElement = {
138138 type : 'UnionTypeAnnotation' ,
139139 typeAnnotation : {
140- types : [
141- { type : 'BooleanTypeAnnotation' } ,
142- { type : 'FunctionTypeAnnotation' } ,
143- ] ,
140+ types : [ { type : 'BooleanTypeAnnotation' } , { type : 'FunctionTypeAnnotation' } ] ,
144141 } ,
145142 } ;
146143
@@ -154,10 +151,7 @@ describe('buildConfigDefinitions', () => {
154151 it ( 'should return booleanOrFunctionParser for UnionTypeAnnotation containing boolean (non-nullable)' , ( ) => {
155152 const mockElement = {
156153 type : 'UnionTypeAnnotation' ,
157- types : [
158- { type : 'BooleanTypeAnnotation' } ,
159- { type : 'FunctionTypeAnnotation' } ,
160- ] ,
154+ types : [ { type : 'BooleanTypeAnnotation' } , { type : 'FunctionTypeAnnotation' } ] ,
161155 } ;
162156
163157 const result = mapperFor ( mockElement , t ) ;
@@ -171,10 +165,7 @@ describe('buildConfigDefinitions', () => {
171165 const mockElement = {
172166 type : 'UnionTypeAnnotation' ,
173167 typeAnnotation : {
174- types : [
175- { type : 'StringTypeAnnotation' } ,
176- { type : 'NumberTypeAnnotation' } ,
177- ] ,
168+ types : [ { type : 'StringTypeAnnotation' } , { type : 'NumberTypeAnnotation' } ] ,
178169 } ,
179170 } ;
180171
@@ -187,10 +178,7 @@ describe('buildConfigDefinitions', () => {
187178 const mockElement = {
188179 type : 'UnionTypeAnnotation' ,
189180 typeAnnotation : {
190- types : [
191- { type : 'BooleanTypeAnnotation' } ,
192- { type : 'VoidTypeAnnotation' } ,
193- ] ,
181+ types : [ { type : 'BooleanTypeAnnotation' } , { type : 'VoidTypeAnnotation' } ] ,
194182 } ,
195183 } ;
196184
0 commit comments