jest-snapshot
Advanced tools
Comparing version 21.3.0-beta.6 to 21.3.0-beta.7
@@ -20,8 +20,22 @@ 'use strict';Object.defineProperty(exports, "__esModule", { value: true }); | ||
{ | ||
const mockObject = { | ||
calls: val.mock.calls, | ||
name: val.getMockName() }; | ||
const indentationNext = indentation + config.indent; | ||
return ( | ||
'MockFunction {\n' + | ||
`${indentationNext}"calls": ${printer( | ||
val.mock.calls, | ||
config, | ||
indentationNext, | ||
depth, | ||
refs) | ||
},\n` + | ||
`${indentationNext}"name": ${printer( | ||
val.getMockName(), | ||
config, | ||
indentationNext, | ||
depth, | ||
refs) | ||
},\n` + | ||
'}'); | ||
return printer(mockObject, config, indentation, depth, refs); | ||
}; /** | ||
@@ -28,0 +42,0 @@ * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
{ | ||
"name": "jest-snapshot", | ||
"version": "21.3.0-beta.6", | ||
"version": "21.3.0-beta.7", | ||
"repository": { | ||
@@ -12,8 +12,8 @@ "type": "git", | ||
"chalk": "^2.0.1", | ||
"jest-diff": "21.3.0-beta.6", | ||
"jest-matcher-utils": "21.3.0-beta.6", | ||
"jest-diff": "21.3.0-beta.7", | ||
"jest-matcher-utils": "21.3.0-beta.7", | ||
"mkdirp": "^0.5.1", | ||
"natural-compare": "^1.4.0", | ||
"pretty-format": "21.3.0-beta.6" | ||
"pretty-format": "21.3.0-beta.7" | ||
} | ||
} |
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
23409
440
+ Addedjest-diff@21.3.0-beta.7(transitive)
+ Addedjest-get-type@21.3.0-beta.7(transitive)
+ Addedjest-matcher-utils@21.3.0-beta.7(transitive)
+ Addedpretty-format@21.3.0-beta.7(transitive)
- Removedjest-diff@21.3.0-beta.6(transitive)
- Removedjest-get-type@21.3.0-beta.6(transitive)
- Removedjest-matcher-utils@21.3.0-beta.6(transitive)
- Removedpretty-format@21.3.0-beta.6(transitive)
Updatedjest-diff@21.3.0-beta.7
Updatedpretty-format@21.3.0-beta.7