Skip to content

Commit bb583fb

Browse files
committed
Update tests for removed Interactivity debug module.
The debug module was removed, only the main interactivity module is exposed.
1 parent 5493f7b commit bb583fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/phpunit/tests/script-modules/wpScriptModules.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,7 @@ public function test_default_script_modules() {
18021802
$actual_preloads = $this->normalize_markup_for_snapshot( get_echo( array( wp_script_modules(), 'print_script_module_preloads' ) ) );
18031803
$this->assertEqualHTML(
18041804
'
1805-
<link rel="modulepreload" href="/wp-includes/js/dist/script-modules/interactivity/debug.min.js" id="@wordpress/interactivity-js-modulepreload" fetchpriority="low">
1805+
<link rel="modulepreload" href="/wp-includes/js/dist/script-modules/interactivity/index.min.js" id="@wordpress/interactivity-js-modulepreload" fetchpriority="low">
18061806
',
18071807
$actual_preloads,
18081808
'<body>',
@@ -1853,7 +1853,7 @@ public function test_dependent_of_default_script_modules() {
18531853

18541854
$expected = '
18551855
<link rel="modulepreload" href="/wp-includes/js/dist/script-modules/a11y/index.min.js" id="@wordpress/a11y-js-modulepreload" fetchpriority="high" data-wp-fetchpriority="low">
1856-
<link rel="modulepreload" href="/wp-includes/js/dist/script-modules/interactivity/debug.min.js" id="@wordpress/interactivity-js-modulepreload" fetchpriority="high" data-wp-fetchpriority="low">
1856+
<link rel="modulepreload" href="/wp-includes/js/dist/script-modules/interactivity/index.min.js" id="@wordpress/interactivity-js-modulepreload" fetchpriority="high" data-wp-fetchpriority="low">
18571857
<link rel="modulepreload" href="/wp-includes/js/dist/script-modules/block-library/navigation/view.min.js" id="@wordpress/block-library/navigation/view-js-modulepreload" fetchpriority="high" data-wp-fetchpriority="low">
18581858
<script type="module" src="/super-important-module.js" id="super-important-js-module" fetchpriority="high"></script>
18591859
';

0 commit comments

Comments
 (0)