Revert "Rename all test files from JS -> ES6"

This reverts commit 2abe85b834.
This commit is contained in:
Robin Ward
2020-03-25 16:13:43 -04:00
parent a42668ead0
commit 4fa580fbd1
281 changed files with 29 additions and 35 deletions
+6 -7
View File
@@ -1,4 +1,5 @@
// discourse-skip-module
/* exported exists, count, present, blank, containsInstance, not, visible, invisible */
function exists(selector) {
return count(selector) > 0;
}
@@ -12,10 +13,8 @@ function visible(selector) {
}
function invisible(selector) {
const $items = find(selector + ":visible");
return (
$items.length === 0 ||
$items.css("opacity") === "0" ||
$items.css("visibility") === "hidden"
);
var $items = find(selector + ":visible");
return $items.length === 0 ||
$items.css("opacity") === "0" ||
$items.css("visibility") === "hidden";
}