diff --git a/includes/PopupsHooks.php b/includes/PopupsHooks.php index 3429187a1..662b6bf0d 100644 --- a/includes/PopupsHooks.php +++ b/includes/PopupsHooks.php @@ -119,20 +119,12 @@ class PopupsHooks { */ public static function onResourceLoaderTestModules( array &$testModules, ResourceLoader &$resourceLoader ) { - $localBasePath = __DIR__ . '/..'; - $scripts = glob( "{$localBasePath}/tests/qunit/ext.popups/{,**/}*.test.js", GLOB_BRACE ); - $start = strlen( $localBasePath ) + 1; - - $scripts = array_map( function ( $script ) use ( $start ) { - return substr( $script, $start ); - }, $scripts ); - $testModules['qunit']['ext.popups.tests'] = [ - 'scripts' => $scripts, - 'dependencies' => [ - 'ext.popups' + 'scripts' => [ + 'tests/qunit/ext.popups/processLinks.test.js', + 'src/processLinks.js', ], - 'localBasePath' => $localBasePath, + 'localBasePath' => __DIR__ . '/..', 'remoteExtPath' => 'Popups', ]; } diff --git a/resources/dist/index.js b/resources/dist/index.js index 406e43e4e..7e800f14e 100644 Binary files a/resources/dist/index.js and b/resources/dist/index.js differ diff --git a/resources/dist/index.js.map b/resources/dist/index.js.map index 2d76f0e93..686cd27c3 100644 Binary files a/resources/dist/index.js.map and b/resources/dist/index.js.map differ