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

redux-testkit

Package Overview
Dependencies
Maintainers
1
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.5 to 0.1.6

2

package.json
{
"name": "redux-testkit",
"version": "0.1.5",
"version": "0.1.6",
"description": "Test kit for redux",

@@ -5,0 +5,0 @@ "author": "Yedidya Kennard <yedidyak@gmail.com>",

import _ from 'lodash';
export class ReducerTest {
constructor(reduce) {
constructor(reduce, initialState = {}) {
this.uut = reduce;
this.initialState = initialState;
}

@@ -12,3 +13,4 @@

it(`${index}:${name} ${(param.description || '')}`, () => {
const {state, action, expected} = param;
let {state, action, expected} = param;
state = state ? state : _.cloneDeep(this.initialState);
const result = this.uut(state, action);

@@ -15,0 +17,0 @@ testEqual(result, 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