jasmine-enzyme
Advanced tools
Comparing version 3.4.0 to 3.5.0
@@ -27,3 +27,5 @@ 'use strict'; | ||
errorThrown = true; | ||
throw new Error('JasmineEnzyme: Added matcher "' + matcherName + '" is over-riding\n jasmine-core matcher. You must rename the function to\n not over-ride anything core.'); | ||
throw new Error(`JasmineEnzyme: Added matcher "${matcherName}" is over-riding | ||
jasmine-core matcher. You must rename the function to | ||
not over-ride anything core.`); | ||
} | ||
@@ -30,0 +32,0 @@ |
@@ -7,5 +7,5 @@ 'use strict'; | ||
var _addMatcher2 = require('./addMatcher'); | ||
var _addMatcher = require('./addMatcher'); | ||
var _addMatcher3 = _interopRequireDefault(_addMatcher2); | ||
var _addMatcher2 = _interopRequireDefault(_addMatcher); | ||
@@ -18,9 +18,9 @@ var _enzymeMatchers = require('enzyme-matchers'); | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** | ||
* This source code is licensed under the MIT-style license found in the | ||
* LICENSE file in the root directory of this source tree. * | ||
* | ||
* @providesModule JasmineEnzyme | ||
* | ||
*/ | ||
/** | ||
* This source code is licensed under the MIT-style license found in the | ||
* LICENSE file in the root directory of this source tree. * | ||
* | ||
* @providesModule JasmineEnzyme | ||
* | ||
*/ | ||
@@ -31,3 +31,6 @@ function jasmineEnzyme() { | ||
if (typeof jest !== 'undefined') { | ||
throw new Error('\n [jasmine-enzyme] The jest usage has been moved to a new package: "jest-enzyme".\n Use that project instead of this. For more information, see: _______\n '); | ||
throw new Error(` | ||
[jasmine-enzyme] The jest usage has been moved to a new package: "jest-enzyme". | ||
Use that project instead of this. For more information, see: _______ | ||
`); | ||
} | ||
@@ -38,5 +41,7 @@ | ||
matchers.forEach(function (matcher) { | ||
(0, _addMatcher3.default)(_defineProperty({}, matcher, function () { | ||
return { compare: _enzymeMatchers2.default[matcher] }; | ||
})); | ||
(0, _addMatcher2.default)({ | ||
[matcher]: function () { | ||
return { compare: _enzymeMatchers2.default[matcher] }; | ||
} | ||
}); | ||
}); | ||
@@ -43,0 +48,0 @@ } |
{ | ||
"name": "jasmine-enzyme", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"description": "Jasmine assertions for enzyme", | ||
@@ -18,4 +18,3 @@ "main": "lib/index.js", | ||
"build:flow": "flow-copy-source -v -i '**/__tests__/*.js' src lib", | ||
"build": "npm run clean && npm run build:js && npm run build:flow", | ||
"prepublish": "npm run build" | ||
"build": "npm run clean && npm run build:js && npm run build:flow" | ||
}, | ||
@@ -48,3 +47,3 @@ "files": [ | ||
"dependencies": { | ||
"enzyme-matchers": "^3.4.0" | ||
"enzyme-matchers": "^3.5.0" | ||
}, | ||
@@ -51,0 +50,0 @@ "jest": { |
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
70
7088
Updatedenzyme-matchers@^3.5.0