File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -336,10 +336,10 @@ const invalid = [].concat(
336336 test ( { parser, code : `import { b } from "./${ folder } /a"; console.log(b.c.d.e)` } ) ,
337337 test ( { parser, code : `import * as a from "./${ folder } /a"; console.log(a.b.c.d.e.f)` } ) ,
338338 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+ ) ;
343343
344344 invalid . push (
345345 test ( {
@@ -371,7 +371,8 @@ const invalid = [].concat(
371371 parser,
372372 code : `import * as a from "./${ folder } /a"; var {b:{c:{ e }}} = a` ,
373373 errors : [ "'e' not found in deeply imported namespace 'a.b.c'." ] ,
374- } ) ) ;
374+ } ) ,
375+ ) ;
375376} ) ;
376377
377378ruleTester . run ( 'namespace' , rule , { valid, invalid } ) ;
You can’t perform that action at this time.
0 commit comments