From: Rohit Sharma Date: Mon, 23 Nov 2020 19:35:46 +0000 (+0530) Subject: Update bundle.js in tests/integration (#32233) X-Git-Tag: v5.0.0-beta1~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c7f08b5e002d53363be52224fc007190da41fe5;p=thirdparty%2Fbootstrap.git Update bundle.js in tests/integration (#32233) * Use `[].concat` instead of direct spreading nodelist Co-authored-by: XhmikosR --- 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!

+
- -
- + + +