enzyme-matchers
Advanced tools
Comparing version 4.0.2 to 4.1.0
@@ -20,2 +20,4 @@ 'use strict'; | ||
function toMatchElement(actualEnzymeWrapper, reactInstance) { | ||
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : { ignoreProps: true }; | ||
var expectedWrapper = void 0; | ||
@@ -28,4 +30,4 @@ if (!(0, _isShallowWrapper2.default)(actualEnzymeWrapper)) { | ||
var actual = actualEnzymeWrapper.debug(); | ||
var expected = expectedWrapper.debug(); | ||
var actual = actualEnzymeWrapper.debug(options); | ||
var expected = expectedWrapper.debug(options); | ||
var pass = actual === expected; | ||
@@ -32,0 +34,0 @@ |
@@ -33,2 +33,3 @@ 'use strict'; | ||
var error = consoleObject.error; | ||
consoleObject.error = noop; | ||
@@ -35,0 +36,0 @@ |
@@ -90,4 +90,2 @@ 'use strict'; | ||
var root = wrapper.first().parents(); | ||
return nodeCount + ' ' + nodeTypes + ' nodes found'; | ||
@@ -94,0 +92,0 @@ } |
@@ -13,2 +13,6 @@ 'use strict'; | ||
var _circularJsonEs = require('circular-json-es6'); | ||
var _circularJsonEs2 = _interopRequireDefault(_circularJsonEs); | ||
var _colors = require('./colors'); | ||
@@ -18,6 +22,2 @@ | ||
var _circularJsonEs = require('circular-json-es6'); | ||
var _circularJsonEs2 = _interopRequireDefault(_circularJsonEs); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -24,0 +24,0 @@ |
{ | ||
"name": "enzyme-matchers", | ||
"version": "4.0.2", | ||
"version": "4.1.0", | ||
"description": "Testing Matchers for Enzyme", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
83171
64