diff --git a/js/tests/integration/bundle-modularity.js b/js/tests/integration/bundle-modularity.js index ed427cd922..003f840210 100644 --- a/js/tests/integration/bundle-modularity.js +++ b/js/tests/integration/bundle-modularity.js @@ -2,6 +2,6 @@ import 'popper.js' import Tooltip from '../../dist/tooltip' window.addEventListener('load', () => { - [...document.querySelectorAll('[data-bs-toggle="tooltip"]')] + [].concat(...document.querySelectorAll('[data-bs-toggle="tooltip"]')) .map(tooltipNode => new Tooltip(tooltipNode)) }) diff --git a/js/tests/integration/bundle.js b/js/tests/integration/bundle.js index 1c6e60bf5e..75982f76f9 100644 --- a/js/tests/integration/bundle.js +++ b/js/tests/integration/bundle.js @@ -2,6 +2,6 @@ import 'popper.js' import { Tooltip } from '../../../dist/js/bootstrap.esm.js' window.addEventListener('load', () => { - [...document.querySelectorAll('[data-bs-toggle="tooltip"]')] + [].concat(...document.querySelectorAll('[data-bs-toggle="tooltip"]')) .map(tooltipNode => new Tooltip(tooltipNode)) }) diff --git a/js/tests/integration/index.html b/js/tests/integration/index.html index 0ea0b64c33..a75e11f568 100644 --- a/js/tests/integration/index.html +++ b/js/tests/integration/index.html @@ -11,52 +11,63 @@ Hello, world! -
+

Hello, world!

+
- -
- + + +