redux-testkit
Advanced tools
Comparing version 0.1.16 to 0.1.17
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _typeof=typeof Symbol==="function"&&typeof(typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof obj;};exports.default= | ||
function(reducer,state){ | ||
var initialState=_lodash2.default.cloneDeep(state||reducer(undefined,{})); | ||
var initialState=state||reducer(undefined,{}); | ||
return{ | ||
@@ -6,0 +6,0 @@ expect:function(_expect){function expect(_x){return _expect.apply(this,arguments);}expect.toString=function(){return _expect.toString();};return expect;}(function(action){ |
{ | ||
"name": "redux-testkit", | ||
"version": "0.1.16", | ||
"version": "0.1.17", | ||
"description": "Test kit for redux", | ||
@@ -45,4 +45,5 @@ "author": "Yedidya Kennard <yedidyak@gmail.com>", | ||
"redux": "^3.6.0", | ||
"redux-thunk": "^2.2.0" | ||
"redux-thunk": "^2.2.0", | ||
"seamless-immutable": "^7.1.1" | ||
} | ||
} |
import _ from 'lodash'; | ||
export default function(reducer, state) { | ||
const initialState = _.cloneDeep(state || reducer(undefined, {})); | ||
const initialState = state || reducer(undefined, {}); | ||
return { | ||
@@ -6,0 +6,0 @@ expect: (action) => { |
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
41601
22