File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -336,10 +336,10 @@ const invalid = [].concat(
336
336
test ( { parser, code : `import { b } from "./${ folder } /a"; console.log(b.c.d.e)` } ) ,
337
337
test ( { parser, code : `import * as a from "./${ folder } /a"; console.log(a.b.c.d.e.f)` } ) ,
338
338
test ( { parser, code : `import * as a from "./${ folder } /a"; var {b:{c:{d:{e}}}} = a` } ) ,
339
- test ( { parser, code : `import { b } from "./${ folder } /a"; var {c:{d:{e}}} = b` } ) ) ;
340
-
341
- // deep namespaces should include explicitly exported defaults
342
- test ( { parser , code : `import * as a from "./ ${ folder } /a"; console.log(a.b.default)` } ) ,
339
+ test ( { parser, code : `import { b } from "./${ folder } /a"; var {c:{d:{e}}} = b` } ) ,
340
+ // deep namespaces should include explicitly exported defaults
341
+ test ( { parser , code : `import * as a from "./ ${ folder } /a"; console.log(a.b.default)` } ) ,
342
+ ) ;
343
343
344
344
invalid . push (
345
345
test ( {
@@ -371,7 +371,8 @@ const invalid = [].concat(
371
371
parser,
372
372
code : `import * as a from "./${ folder } /a"; var {b:{c:{ e }}} = a` ,
373
373
errors : [ "'e' not found in deeply imported namespace 'a.b.c'." ] ,
374
- } ) ) ;
374
+ } ) ,
375
+ ) ;
375
376
} ) ;
376
377
377
378
ruleTester . run ( 'namespace' , rule , { valid, invalid } ) ;
You can’t perform that action at this time.
0 commit comments