Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it('should return true when below the fold', () => {
- const jQuery = global.jQuery = global.$ = require('jquery');
- let $img;
- document.body.innerHTML = '<img />';
- $img = $('img');
- $img.css('margin-top', '769px');
- console.log($img.offset().top);
- });
Add Comment
Please, Sign In to add comment