Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-testkit

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-testkit - npm Package Compare versions

Comparing version 0.1.19 to 0.1.20

8

dist/Reducer.js

@@ -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);

5

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc