enzyme-adapter-react-16
Advanced tools
Comparing version 1.9.0 to 1.9.1
@@ -663,3 +663,9 @@ 'use strict'; | ||
function nodeToHostNode(node) { | ||
return _nodeToHostNode(node); | ||
var supportsArray = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; | ||
var nodes = _nodeToHostNode(node); | ||
if (Array.isArray(nodes) && !supportsArray) { | ||
return nodes[0]; | ||
} | ||
return nodes; | ||
} | ||
@@ -666,0 +672,0 @@ |
{ | ||
"name": "enzyme-adapter-react-16", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"description": "JavaScript Testing utilities for React", | ||
@@ -5,0 +5,0 @@ "homepage": "http://airbnb.io/enzyme/", |
@@ -513,4 +513,8 @@ /* eslint no-use-before-define: 0 */ | ||
nodeToHostNode(node) { | ||
return nodeToHostNode(node); | ||
nodeToHostNode(node, supportsArray = false) { | ||
const nodes = nodeToHostNode(node); | ||
if (Array.isArray(nodes) && !supportsArray) { | ||
return nodes[0]; | ||
} | ||
return nodes; | ||
} | ||
@@ -517,0 +521,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68845
1558