mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Test cleanup.
This commit is contained in:
18
test/test.js
18
test/test.js
@@ -480,7 +480,7 @@
|
|||||||
equal('_method' in lodashBizarro, false);
|
equal('_method' in lodashBizarro, false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skipTest(1);
|
skipTest();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1892,7 +1892,7 @@
|
|||||||
}, 128);
|
}, 128);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skipTest(1);
|
skipTest();
|
||||||
QUnit.start();
|
QUnit.start();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -4553,7 +4553,7 @@
|
|||||||
if (document) {
|
if (document) {
|
||||||
strictEqual(_.isObject(body), true);
|
strictEqual(_.isObject(body), true);
|
||||||
} else {
|
} else {
|
||||||
skipTest(1);
|
skipTest();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -7825,11 +7825,11 @@
|
|||||||
return ++dateCount < 3 ? +new Date : Infinity;
|
return ++dateCount < 3 ? +new Date : Infinity;
|
||||||
};
|
};
|
||||||
|
|
||||||
var lodash = _.runInContext(_.assign({}, root, {
|
var lodash = _.runInContext({
|
||||||
'Date': function() {
|
'Date': function() {
|
||||||
return { 'getTime': getTime, 'valueOf': getTime };
|
return { 'getTime': getTime, 'valueOf': getTime };
|
||||||
}
|
}
|
||||||
}));
|
});
|
||||||
|
|
||||||
var throttled = lodash.throttle(function() {
|
var throttled = lodash.throttle(function() {
|
||||||
callCount++;
|
callCount++;
|
||||||
@@ -7917,7 +7917,7 @@
|
|||||||
ok(count > 1);
|
ok(count > 1);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skipTest(1);
|
skipTest();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -8064,7 +8064,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncTest('_.' + methodName + ' should work if system time is set backwards', 1, function() {
|
asyncTest('_.' + methodName + ' should work if the system time is set backwards', 1, function() {
|
||||||
if (!isModularize) {
|
if (!isModularize) {
|
||||||
var callCount = 0,
|
var callCount = 0,
|
||||||
dateCount = 0;
|
dateCount = 0;
|
||||||
@@ -8073,11 +8073,11 @@
|
|||||||
return ++dateCount < 2 ? +new Date : +new Date(2012, 3, 23, 23, 27, 18);
|
return ++dateCount < 2 ? +new Date : +new Date(2012, 3, 23, 23, 27, 18);
|
||||||
};
|
};
|
||||||
|
|
||||||
var lodash = _.runInContext(_.assign({}, root, {
|
var lodash = _.runInContext({
|
||||||
'Date': function() {
|
'Date': function() {
|
||||||
return { 'getTime': getTime, 'valueOf': getTime };
|
return { 'getTime': getTime, 'valueOf': getTime };
|
||||||
}
|
}
|
||||||
}));
|
});
|
||||||
|
|
||||||
var funced = lodash[methodName](function() {
|
var funced = lodash[methodName](function() {
|
||||||
callCount++;
|
callCount++;
|
||||||
|
|||||||
Reference in New Issue
Block a user