@@ -1371,7 +1371,8 @@ module.exports = {
13711371 const config = createWebpackConfig ( 'www/build' , 'dev' ) ;
13721372 config . setPublicPath ( '/build' ) ;
13731373 config . addEntry ( 'main' , [ './js/index.ts' ] ) ;
1374- const testCallback = ( ) => { } ;
1374+ const testCallback = ( ) => {
1375+ } ;
13751376 config . enableTypeScriptLoader ( testCallback ) ;
13761377
13771378 testSetup . runWebpack ( config , ( webpackAssert ) => {
@@ -1455,7 +1456,8 @@ module.exports = {
14551456 const config = createWebpackConfig ( 'www/build' , 'dev' ) ;
14561457 config . setPublicPath ( '/build' ) ;
14571458 config . addEntry ( 'main' , [ './js/handlebars.js' ] ) ;
1458- const testCallback = ( ) => { } ;
1459+ const testCallback = ( ) => {
1460+ } ;
14591461 config . enableHandlebarsLoader ( testCallback ) ;
14601462
14611463 testSetup . runWebpack ( config , ( ) => {
@@ -1924,7 +1926,8 @@ module.exports = {
19241926 config . enableSingleRuntimeChunk ( ) ;
19251927 config . setPublicPath ( '/build' ) ;
19261928 config . addEntry ( 'main' , `./vuejs-jsx/main_v${ getVueVersion ( config ) } ` ) ;
1927- config . enableVueLoader ( ( ) => { } , {
1929+ config . enableVueLoader ( ( ) => {
1930+ } , {
19281931 useJsx : true ,
19291932 version : getVueVersion ( config ) ,
19301933 } ) ;
@@ -3138,11 +3141,14 @@ module.exports = {
31383141
31393142 testSetup . runWebpack ( config , ( webpackAssert ) => {
31403143 const integrityData = getIntegrityData ( config ) ;
3141- const expectedFilesWithHashes = [
3142- '/build/runtime.js' ,
3143- '/build/main.js' ,
3144- '/build/styles.css' ,
3145- ] ;
3144+ const expectedFilesWithHashes = Object . keys ( integrityData ) . filter ( file => {
3145+ if ( ! / \? v = [ a - z 0 - 9 ] { 16 } $ / . test ( file ) ) {
3146+ return false ;
3147+ }
3148+ return file . startsWith ( '/build/runtime.js?v=' )
3149+ || file . startsWith ( '/build/main.js?v=' )
3150+ || file . startsWith ( '/build/styles.css?v=' ) ;
3151+ } ) ;
31463152
31473153 expectedFilesWithHashes . forEach ( ( file ) => {
31483154 expect ( integrityData [ file ] ) . to . contain ( 'sha384-' ) ;
0 commit comments