summaryrefslogtreecommitdiffstats
path: root/js/tests/integration/bundle.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/integration/bundle.js')
-rw-r--r--js/tests/integration/bundle.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/tests/integration/bundle.js b/js/tests/integration/bundle.js
new file mode 100644
index 0000000..452088a
--- /dev/null
+++ b/js/tests/integration/bundle.js
@@ -0,0 +1,6 @@
+import { Tooltip } from '../../../dist/js/bootstrap.esm.js'
+
+window.addEventListener('load', () => {
+ [].concat(...document.querySelectorAll('[data-bs-toggle="tooltip"]'))
+ .map(tooltipNode => new Tooltip(tooltipNode))
+})