Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

enzyme-matchers

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enzyme-matchers - npm Package Compare versions

Comparing version 4.0.2 to 4.1.0

lib/types/ToMatchElementOptions.js

6

lib/assertions/toMatchElement.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc