jest-jasmine2
Advanced tools
Comparing version 11.0.1 to 11.0.2
{ | ||
"name": "jest-jasmine2", | ||
"version": "11.0.1", | ||
"version": "11.0.2", | ||
"repository": { | ||
@@ -12,3 +12,3 @@ "type": "git", | ||
"graceful-fs": "^4.1.3", | ||
"jest-util": "^11.0.1" | ||
"jest-util": "^11.0.2" | ||
}, | ||
@@ -15,0 +15,0 @@ "scripts": { |
@@ -42,2 +42,21 @@ /** | ||
jasmine = requireJasmine.core(requireJasmine); | ||
const jasmineBuildExpectationResult = jasmine.buildExpectationResult; | ||
// https://github.com/facebook/jest/issues/429 | ||
jasmine.buildExpectationResult = function(options) { | ||
if (!options.passed) { | ||
function shallowCopy(obj) { | ||
return typeof obj !== 'object' || obj === null | ||
? obj : jasmine.util.clone(obj); | ||
} | ||
options.expected = shallowCopy(options.expected); | ||
options.actual = shallowCopy(options.actual); | ||
} | ||
return jasmineBuildExpectationResult.apply(jasmine, arguments); | ||
}; | ||
env = jasmine.getEnv(); | ||
@@ -44,0 +63,0 @@ const jasmineInterface = requireJasmine.interface(jasmine, env); |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
100991
3070
1
Updatedjest-util@^11.0.2