aboutsummaryrefslogtreecommitdiff
path: root/js/tests/visual
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2021-03-18 12:58:26 +0200
committerXhmikosR <[email protected]>2021-10-05 19:52:11 +0300
commit9f1579aa048eb6a7dee30f60e5c2357b049eff3a (patch)
tree109f14cb931e0922ca1bc1a9b75234b3422e62ed /js/tests/visual
parent57d80fcd3274ba1ff0a1580966e098fda80f74e7 (diff)
downloadbootstrap-9f1579aa048eb6a7dee30f60e5c2357b049eff3a.tar.xz
bootstrap-9f1579aa048eb6a7dee30f60e5c2357b049eff3a.zip
Enable `unicorn/prefer-prototype-methods` rule
Diffstat (limited to 'js/tests/visual')
-rw-r--r--js/tests/visual/modal.html4
-rw-r--r--js/tests/visual/popover.html2
-rw-r--r--js/tests/visual/tooltip.html2
3 files changed, 4 insertions, 4 deletions
diff --git a/js/tests/visual/modal.html b/js/tests/visual/modal.html
index ac0a931af..eeb0aa567 100644
--- a/js/tests/visual/modal.html
+++ b/js/tests/visual/modal.html
@@ -220,12 +220,12 @@
}
}
- [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
+ Array.prototype.slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
.forEach(function (popover) {
new Popover(popover)
})
- var tooltipList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
+ var tooltipList = Array.prototype.slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
tooltipList.forEach(function (tooltip) {
new Tooltip(tooltip)
})
diff --git a/js/tests/visual/popover.html b/js/tests/visual/popover.html
index 986ac571e..f914f2b3b 100644
--- a/js/tests/visual/popover.html
+++ b/js/tests/visual/popover.html
@@ -40,7 +40,7 @@
<script src="../../dist/tooltip.js"></script>
<script src="../../dist/popover.js"></script>
<script>
- [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
+ Array.prototype.slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
.forEach(function (popover) {
new Popover(popover)
})
diff --git a/js/tests/visual/tooltip.html b/js/tests/visual/tooltip.html
index ab6040920..29248f9da 100644
--- a/js/tests/visual/tooltip.html
+++ b/js/tests/visual/tooltip.html
@@ -92,7 +92,7 @@
})
}
- [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
+ Array.prototype.slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
.forEach(function (tooltip) {
new Tooltip(tooltip)
})