mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Another attempt at fixing _.isElement bizarro tests.
This commit is contained in:
@@ -5038,14 +5038,12 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('should use a stronger check in browsers', 2, function() {
|
test('should use a stronger check in browsers', 2, function() {
|
||||||
var support = _.support,
|
var expected = !_.support.dom;
|
||||||
expected = !(support.dom && _.result(support, 'nodeClass', true));
|
|
||||||
|
|
||||||
strictEqual(_.isElement(new Element), expected);
|
strictEqual(_.isElement(new Element), expected);
|
||||||
|
|
||||||
if (lodashBizarro) {
|
if (lodashBizarro) {
|
||||||
support = lodashBizarro.support;
|
expected = !lodashBizarro.support.dom;
|
||||||
expected = !(support.dom && support.nodeClass);
|
|
||||||
strictEqual(lodashBizarro.isElement(new Element), expected);
|
strictEqual(lodashBizarro.isElement(new Element), expected);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user