redux-testkit
Advanced tools
Comparing version 0.1.19 to 0.1.20
@@ -21,2 +21,10 @@ 'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.default= | ||
}, | ||
toChangeInState:function toChangeInState(expectedChanges){ | ||
var expected=_lodash2.default.merge({},originalState,expectedChanges); | ||
expect(newState).toEqual(expected); | ||
if(mutated){ | ||
throw new Error('state mutated after running reducer'); | ||
} | ||
}, | ||
toReturnStateWithMutation:function toReturnStateWithMutation(expected){ | ||
@@ -23,0 +31,0 @@ expect(newState).toEqual(expected); |
{ | ||
"name": "redux-testkit", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"description": "Test kit for redux", | ||
@@ -5,0 +8,0 @@ "author": "Yedidya Kennard <yedidyak@gmail.com>", |
@@ -21,2 +21,10 @@ import _ from 'lodash'; | ||
}, | ||
toChangeInState: (expectedChanges) => { | ||
const expected = _.merge({}, originalState, expectedChanges); | ||
expect(newState).toEqual(expected); | ||
// expect(mutated).toEqual(false); | ||
if (mutated) { | ||
throw new Error('state mutated after running reducer'); | ||
} | ||
}, | ||
toReturnStateWithMutation: (expected) => { | ||
@@ -23,0 +31,0 @@ expect(newState).toEqual(expected); |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality 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
559
36668
21
1
0
1