@@ -176,28 +176,42 @@ describe('TypeOrValueSpecifier', () => {
176
176
runTestNegative ,
177
177
) ;
178
178
179
- it . each < [ string , TypeOrValueSpecifier ] > ( [
179
+ it . each < [ string , TypeOrValueSpecifier ] > (
180
180
[
181
- 'interface Foo {prop: string}; type Test = Foo;' ,
182
- { from : 'file' , name : 'Foo' } ,
183
- ] ,
184
- [
185
- 'interface Foo {prop: string}; type Test = Foo;' ,
186
- { from : 'file' , name : [ 'Foo' , 'Bar' ] } ,
187
- ] ,
188
- [
189
- 'interface Foo {prop: string}; type Test = Foo;' ,
190
- { from : 'file' , name : 'Foo' , path : 'tests/fixtures/file.ts' } ,
191
- ] ,
192
- [
193
- 'interface Foo {prop: string}; type Test = Foo;' ,
194
- {
195
- from : 'file' ,
196
- name : [ 'Foo' , 'Bar' ] ,
197
- path : 'tests/fixtures/file.ts' ,
198
- } ,
199
- ] ,
200
- ] ) ( 'matches a matching file specifier: %s' , runTestPositive ) ;
181
+ [
182
+ 'interface Foo {prop: string}; type Test = Foo;' ,
183
+ 'type Foo = {prop: string}; type Test = Foo;' ,
184
+ ] . map ( ( test ) : [ string , TypeOrValueSpecifier ] => [
185
+ test ,
186
+ { from : 'file' , name : 'Foo' } ,
187
+ ] ) ,
188
+ [
189
+ 'interface Foo {prop: string}; type Test = Foo;' ,
190
+ 'type Foo = {prop: string}; type Test = Foo;' ,
191
+ ] . map ( ( test ) : [ string , TypeOrValueSpecifier ] => [
192
+ test ,
193
+ { from : 'file' , name : [ 'Foo' , 'Bar' ] } ,
194
+ ] ) ,
195
+ [
196
+ 'interface Foo {prop: string}; type Test = Foo;' ,
197
+ 'type Foo = {prop: string}; type Test = Foo;' ,
198
+ ] . map ( ( test ) : [ string , TypeOrValueSpecifier ] => [
199
+ test ,
200
+ { from : 'file' , name : 'Foo' , path : 'tests/fixtures/file.ts' } ,
201
+ ] ) ,
202
+ [
203
+ 'interface Foo {prop: string}; type Test = Foo;' ,
204
+ 'type Foo = {prop: string}; type Test = Foo;' ,
205
+ ] . map ( ( test ) : [ string , TypeOrValueSpecifier ] => [
206
+ test ,
207
+ {
208
+ from : 'file' ,
209
+ name : [ 'Foo' , 'Bar' ] ,
210
+ path : 'tests/fixtures/file.ts' ,
211
+ } ,
212
+ ] ) ,
213
+ ] . flat ( ) ,
214
+ ) ( 'matches a matching file specifier: %s' , runTestPositive ) ;
201
215
202
216
it . each < [ string , TypeOrValueSpecifier ] > ( [
203
217
[
0 commit comments