testdouble
Advanced tools
Comparing version 3.13.0 to 3.13.1
# Change Log | ||
## 3.13.1 | ||
* Fixes cases where test double objects are passed into `when` or `verify` | ||
[#427](https://github.com/testdouble/testdouble.js/pull/427) | ||
## Automated changelog (pre-3.13.0) - github_changelog_generator stopped working for us | ||
## [v3.12.4](https://github.com/testdouble/testdouble.js/tree/v3.12.4) (2019-08-21) | ||
@@ -1094,2 +1101,2 @@ [Full Changelog](https://github.com/testdouble/testdouble.js/compare/v3.12.3...v3.12.4) | ||
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* | ||
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = (function (thing) { | ||
return thing && thing.__matches; | ||
return thing && !thing[Symbol('__is_proxy')] && thing.__matches; | ||
}); |
@@ -29,2 +29,5 @@ "use strict"; | ||
var generateGet = function (target, propKey, internalName, excludeMethods) { | ||
if (propKey === Symbol('__is_proxy')) { | ||
return true; | ||
} | ||
if (!Object.prototype.hasOwnProperty.call(target, propKey) && | ||
@@ -31,0 +34,0 @@ !lodash_1.default.includes(excludeMethods, propKey)) { |
@@ -13,2 +13,5 @@ "use strict"; | ||
} | ||
else if (anything && anything[Symbol('__is_proxy')]) { | ||
return anything.toString(); | ||
} | ||
else { | ||
@@ -15,0 +18,0 @@ return stringifyObject(anything, { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = '3.13.0'; | ||
exports.default = '3.13.1'; |
{ | ||
"name": "testdouble", | ||
"version": "3.13.0", | ||
"version": "3.13.1", | ||
"description": "A minimal test double library for TDD with JavaScript", | ||
@@ -49,6 +49,5 @@ "homepage": "https://github.com/testdouble/testdouble.js", | ||
"version:write": "echo \"export default '$npm_package_version'\" > src/version.js", | ||
"version:changelog": "if command -v github_changelog_generator &>/dev/null; then github_changelog_generator; git commit -m \"Changelog for $npm_package_version\" CHANGELOG.md; else echo Versioning requires you first run 'gem install github_changelog_generator' >&2; fi", | ||
"preversion": "git pull --rebase && npm run test:ci", | ||
"version": "npm run version:write && npm run compile && git add src/version.js", | ||
"postversion": "git push --tags && npm run version:changelog && git push && npm publish", | ||
"postversion": "git push --tags && git push && npm publish", | ||
"prepare": "npm run compile" | ||
@@ -55,0 +54,0 @@ }, |
export default (thing) => | ||
thing && thing.__matches | ||
thing && !thing[Symbol('__is_proxy')] && thing.__matches |
@@ -33,2 +33,6 @@ import * as theredoc from 'theredoc' | ||
const generateGet = (target, propKey, internalName, excludeMethods) => { | ||
if (propKey === Symbol('__is_proxy')) { | ||
return true | ||
} | ||
if (!Object.prototype.hasOwnProperty.call(target, propKey) && | ||
@@ -35,0 +39,0 @@ !_.includes(excludeMethods, propKey)) { |
@@ -10,2 +10,4 @@ import _ from '../wrap/lodash' | ||
return anything.__name | ||
} else if (anything && anything[Symbol('__is_proxy')]) { | ||
return anything.toString() | ||
} else { | ||
@@ -12,0 +14,0 @@ return stringifyObject(anything, { |
@@ -1,1 +0,1 @@ | ||
export default '3.13.0' | ||
export default '3.13.1' |
Sorry, the diff of this file is too big to display
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
516559
12094