jest-enzyme
Advanced tools
Comparing version 3.8.0 to 3.8.1
@@ -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
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
8115
64
Updatedenzyme-matchers@^3.8.1