Socket
Socket
Sign inDemoInstall

jest-enzyme

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-enzyme - npm Package Compare versions

Comparing version 3.8.0 to 3.8.1

12

lib/index.js

@@ -41,14 +41,16 @@ 'use strict';

if (this.isNot) {
result.message = result.negatedMessage;
}
var message = this.isNot ? result.negatedMessage : result.message;
if (result.contextualInformation.expected) {
result.message += '\n' + this.utils.RECEIVED_COLOR(result.contextualInformation.expected);
message += '\n' + this.utils.RECEIVED_COLOR(result.contextualInformation.expected);
}
if (result.contextualInformation.actual) {
result.message += '\n' + this.utils.EXPECTED_COLOR(result.contextualInformation.actual);
message += '\n' + this.utils.EXPECTED_COLOR(result.contextualInformation.actual);
}
result.message = function () {
return message;
};
return result;

@@ -55,0 +57,0 @@ })[matcherKey];

{
"name": "jest-enzyme",
"version": "3.8.0",
"version": "3.8.1",
"description": "Testing Matchers for Enzyme",

@@ -53,3 +53,3 @@ "main": "lib/index.js",

"@types/react": "^15.0.22",
"enzyme-matchers": "^3.8.0",
"enzyme-matchers": "^3.8.1",
"enzyme-to-json": "^1.5.0"

@@ -56,0 +56,0 @@ },

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