From 9f1579aa048eb6a7dee30f60e5c2357b049eff3a Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 18 Mar 2021 12:58:26 +0200 Subject: Enable `unicorn/prefer-prototype-methods` rule --- js/tests/visual/modal.html | 4 ++-- js/tests/visual/popover.html | 2 +- js/tests/visual/tooltip.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'js/tests') 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 @@