From 7c7f08b5e002d53363be52224fc007190da41fe5 Mon Sep 17 00:00:00 2001 From: Rohit Sharma Date: Tue, 24 Nov 2020 01:05:46 +0530 Subject: [PATCH] Update bundle.js in tests/integration (#32233) * Use `[].concat` instead of direct spreading nodelist Co-authored-by: XhmikosR --- js/tests/integration/bundle-modularity.js | 2 +- js/tests/integration/bundle.js | 2 +- js/tests/integration/index.html | 35 +++++++++++++++-------- 3 files changed, 25 insertions(+), 14 deletions(-) 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!

+
- -
- + + +