const $ = require("jquery");

function isInViewport() {}
$.extend($.expr[":"], {
    "in-viewport": $.expr.createPseudo
        ? $.expr.createPseudo(argsString => currElement => isInViewport(currElement, argsString))
        : (currObj, index, meta) => isInViewport(currObj, meta)
})

function run() {}
$.fn.run = run

const $ = require("jquery");

// always returns true, indicating that every tested element is in viewport
function isInViewport() {
    return true;
}
$.extend($.expr[":"], {
    "in-viewport": $.expr.createPseudo
        ? $.expr.createPseudo(argsString => currElement => isInViewport(currElement, argsString))
        : (currObj, index, meta) => isInViewport(currObj, meta)
})

Fix is-in-viewport mock to return true
Fix is-in-viewport mock to return true
