File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ describe('STANDALONE EXPORTS', async () => {
1313
1414 // Build list of exported subpaths
1515 const exported = { } ;
16- for ( const [ subpath_key , subpath_contents ] of Object . entries ( packageinfo . exports ) ) {
17- if ( ( subpath_key != '.' ) && ( subpath_contents [ 'import' ] ) ) {
16+ for ( const [ subpath_key , subpath_contents ] of Object . entries ( packageinfo . exports ) ) {
17+ if ( subpath_key != '.' && subpath_contents [ 'import' ] ) {
1818 const imported = await import ( `./../${ subpath_contents [ 'import' ] } ` ) ;
1919 exported [ subpath_key ] = Object . keys ( imported ) ;
2020 }
2121 }
2222
2323 describe ( 'The subpath exports export the correct set of functions' , ( ) => {
24- for ( const [ key , functions ] of Object . entries ( expected ) ) {
24+ for ( const [ key , functions ] of Object . entries ( expected ) ) {
2525 it ( `${ key } exports ${ functions . length } functions (${ exported [ key ] } )` , ( ) => {
2626 deepEqual ( exported [ key ] , functions ) ;
2727 } ) ;
You can’t perform that action at this time.
0 commit comments