Remove dual environment _.isElement test.

This commit is contained in:
jdalton
2015-05-27 15:21:52 -04:00
parent 32f223c683
commit dfec166704

View File

@@ -7240,7 +7240,7 @@
this.nodeType = 1;
}
test('should use robust check', 7, function() {
test('should return `false` for plain objects', 7, function() {
var element = body || new Element;
strictEqual(_.isElement(element), true);
@@ -7252,20 +7252,6 @@
strictEqual(_.isElement({ 'nodeType': '001' }), false);
});
test('should use a stronger check in browsers', 2, function() {
var expected = !_.support.dom;
strictEqual(_.isElement(new Element), expected);
if (lodashBizarro) {
expected = !lodashBizarro.support.dom;
strictEqual(lodashBizarro.isElement(new Element), expected);
}
else {
skipTest();
}
});
test('should return `false` for non DOM elements', 13, function() {
var expected = _.map(falsey, _.constant(false));