aboutsummaryrefslogtreecommitdiff
path: root/js/tests/integration
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2019-01-04 16:09:52 +0200
committerXhmikosR <[email protected]>2019-02-20 22:05:45 +0200
commitc096e0e0da1a972bb1088956e0d1dd0fcc88015a (patch)
treee80a1325b208edc480be80a14c931f555f25776c /js/tests/integration
parent709dcb98dd7e018acef82f1199ba547b4be0a9ba (diff)
downloadbootstrap-c096e0e0da1a972bb1088956e0d1dd0fcc88015a.tar.xz
bootstrap-c096e0e0da1a972bb1088956e0d1dd0fcc88015a.zip
bump to 4.2.1
Diffstat (limited to 'js/tests/integration')
-rw-r--r--js/tests/integration/bundle.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/js/tests/integration/bundle.js b/js/tests/integration/bundle.js
index df5b34610..23caeab73 100644
--- a/js/tests/integration/bundle.js
+++ b/js/tests/integration/bundle.js
@@ -1,8 +1,9 @@
import 'popper.js'
-import $ from 'jquery'
import bootstrap from '../../../dist/js/bootstrap'
-$(() => {
- $('#resultUID').text(bootstrap.Util.getUID('bs'))
- $('[data-toggle="tooltip"]').tooltip()
+window.addEventListener('load', () => {
+ document.getElementById('resultUID').innerHTML = bootstrap.Util.getUID('bs')
+
+ bootstrap.Util.makeArray(document.querySelectorAll('[data-toggle="tooltip"]'))
+ .map((tooltipNode) => new bootstrap.Tooltip(tooltipNode))
})