Skip to content

Commit 8579320

Browse files
committed
fix tests
(@todo: fix tests with Zepto and DOMtastic)
1 parent bb2730a commit 8579320

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/lazyloadxt_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
expect(5);
4040
setTimeout(function () {
4141
var $img = $('img'),
42-
cntinit = $img.filter(function (el) {
42+
cntinit = $img.filter(function (index, el) {
4343
return $(el).data('lazied');
4444
}).length,
45-
cntnow = $img.filter(function (el) {
45+
cntnow = $img.filter(function (index, el) {
4646
return $(el).data('lazied') && ($(el).attr('src') === $(el).attr('data-src'));
4747
}).length;
4848
ok($img.length > 0, 'images should be presented');

0 commit comments

Comments
 (0)