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.21 to 0.1.22

README.md

11

dist/Reducer.js
'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.default=
function(reducer,state){

@@ -21,3 +28,3 @@ var initialState=state||reducer(undefined,{});

toChangeInState:function toChangeInState(expectedChanges){
var expected=_lodash2.default.merge({},originalState,expectedChanges);
var expected=_lodash2.default.mergeWith(originalState,expectedChanges,toChangeInStateCustomizer);
expect(newState).toEqual(expected);

@@ -41,2 +48,2 @@

};var _lodash=require('lodash');var _lodash2=_interopRequireDefault(_lodash);var _utils=require('./utils');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
};var _lodash=require('lodash');var _lodash2=_interopRequireDefault(_lodash);var _utils=require('./utils');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function toChangeInStateCustomizer(objValue,srcValue){if(_lodash2.default.isArray(objValue)){return srcValue;}return undefined;}

2

package.json
{
"name": "redux-testkit",
"version": "0.1.21",
"version": "0.1.22",
"publishConfig": {

@@ -5,0 +5,0 @@ "registry": "https://registry.npmjs.org/"

import _ from 'lodash';
import {deepEqual} from './utils';
function toChangeInStateCustomizer(objValue, srcValue) {
if (_.isArray(objValue)) {
return srcValue;
}
return undefined;
}
export default function(reducer, state) {

@@ -21,3 +28,3 @@ const initialState = state || reducer(undefined, {});

toChangeInState: (expectedChanges) => {
const expected = _.merge({}, originalState, expectedChanges);
const expected = _.mergeWith(originalState, expectedChanges, toChangeInStateCustomizer);
expect(newState).toEqual(expected);

@@ -24,0 +31,0 @@ // expect(mutated).toEqual(false);

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