mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Keep code coverage up for _.isElement.
This commit is contained in:
10
test/test.js
10
test/test.js
@@ -3549,10 +3549,12 @@
|
|||||||
strictEqual(_.isElement({ 'nodeType': '001' }), false);
|
strictEqual(_.isElement({ 'nodeType': '001' }), false);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should use a stronger check in browsers', 1, function() {
|
test('should use a stronger check in browsers', 2, function() {
|
||||||
var lodash = document ? _ : lodashBizarro;
|
var expected = !body;
|
||||||
if (lodash) {
|
strictEqual(_.isElement(new Element), expected);
|
||||||
strictEqual(lodash.isElement(new Element), false);
|
|
||||||
|
if (lodashBizarro) {
|
||||||
|
strictEqual(lodashBizarro.isElement(new Element), !expected);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skipTest();
|
skipTest();
|
||||||
|
|||||||
Reference in New Issue
Block a user