mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +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() {
|
||||
var support = _.support,
|
||||
expected = !(support.dom && _.result(support, 'nodeClass', true));
|
||||
var expected = !_.support.dom;
|
||||
|
||||
strictEqual(_.isElement(new Element), expected);
|
||||
|
||||
if (lodashBizarro) {
|
||||
support = lodashBizarro.support;
|
||||
expected = !(support.dom && support.nodeClass);
|
||||
expected = !lodashBizarro.support.dom;
|
||||
strictEqual(lodashBizarro.isElement(new Element), expected);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user