File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
app/code/Magento/RequireJs Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,9 @@ public function createBundleJsPool()
183183 }
184184
185185 foreach ($ libDir ->read ($ bundleDir ) as $ bundleFile ) {
186+ if (pathinfo ($ bundleFile , PATHINFO_EXTENSION ) !== 'js ' ) {
187+ continue ;
188+ }
186189 $ relPath = $ libDir ->getRelativePath ($ bundleFile );
187190 $ bundles [] = $ this ->assetRepo ->createArbitrary ($ relPath , '' );
188191 }
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ public function testCreateBundleJsPool()
153153 ->expects ($ this ->once ())
154154 ->method ('read ' )
155155 ->with ('path/to/bundle/dir/js/bundle ' )
156- ->willReturn (['bundle1.js ' , 'bundle2.js ' ]);
156+ ->willReturn (['bundle1.js ' , 'bundle2.js ' , ' some_file.not_js ' ]);
157157 $ dirRead
158158 ->expects ($ this ->exactly (2 ))
159159 ->method ('getRelativePath ' )
You can’t perform that action at this time.
0 commit comments