Keep code coverage up for _.isElement.

This commit is contained in:
John-David Dalton
2013-12-15 18:19:48 -08:00
parent aaaf452fdc
commit 74da5dfd4b

View File

@@ -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();