From 7c7f08b5e002d53363be52224fc007190da41fe5 Mon Sep 17 00:00:00 2001 From: Rohit Sharma Date: Tue, 24 Nov 2020 01:05:46 +0530 Subject: Update bundle.js in tests/integration (#32233) * Use `[].concat` instead of direct spreading nodelist Co-authored-by: XhmikosR --- js/tests/integration/bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/tests/integration/bundle.js') diff --git a/js/tests/integration/bundle.js b/js/tests/integration/bundle.js index 1c6e60bf5..75982f76f 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)) }) -- cgit v1.2.3