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

redux-devtools-test-generator

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-devtools-test-generator - npm Package Compare versions

Comparing version 0.2.2 to 0.3.0

lib/redux/jest/index.js

6

lib/index.js

@@ -181,3 +181,7 @@ 'use strict';

}
compare(computedStates[i - 1], computedStates[i], addAssertions, isVanilla && {});
if (!isVanilla) {
addAssertions({ path: '', curState: (0, _javascriptStringify2.default)(computedStates[i].state) });
} else {
compare(computedStates[i - 1], computedStates[i], addAssertions, isVanilla && {});
}
}

@@ -184,0 +188,0 @@ i++;

3

lib/redux/ava/index.js

@@ -13,5 +13,4 @@ 'use strict';

var assertion = exports.assertion = function assertion(_ref2) {
var path = _ref2.path;
var curState = _ref2.curState;
return 't.deepEqual(state' + path + ', ' + curState + ');';
return 't.deepEqual(state, ' + curState + ');';
};

@@ -18,0 +17,0 @@

@@ -8,3 +8,3 @@ 'use strict';

var assertion = exports.assertion = 't.deepEqual(state${path}, ${curState});';
var assertion = exports.assertion = 't.deepEqual(state, ${curState});';

@@ -11,0 +11,0 @@ var wrap = exports.wrap = 'import test from \'ava\';\nimport reducers from \'../../reducers\';\n\ntest(\'reducers\', (t) => {\n let state;\n ${assertions}\n});\n';

@@ -13,5 +13,4 @@ 'use strict';

var assertion = exports.assertion = function assertion(_ref2) {
var path = _ref2.path;
var curState = _ref2.curState;
return 'expect(state' + path + ').toEqual(' + curState + ');';
return 'expect(state).toEqual(' + curState + ');';
};

@@ -18,0 +17,0 @@

@@ -8,3 +8,3 @@ 'use strict';

var assertion = exports.assertion = 'expect(state${path}).toEqual(${curState});';
var assertion = exports.assertion = 'expect(state).toEqual(${curState});';

@@ -11,0 +11,0 @@ var wrap = exports.wrap = 'import expect from \'expect\';\nimport reducers from \'../../reducers\';\n\ndescribe(\'reducers\', () => {\n it(\'should handle actions\', () => {\n let state;\n ${assertions}\n });\n});\n';

@@ -13,5 +13,4 @@ 'use strict';

var assertion = exports.assertion = function assertion(_ref2) {
var path = _ref2.path;
var curState = _ref2.curState;
return 't.deepEqual(state' + path + ', ' + curState + ');';
return 't.deepEqual(state, ' + curState + ');';
};

@@ -18,0 +17,0 @@

@@ -8,3 +8,3 @@ 'use strict';

var assertion = exports.assertion = 't.deepEqual(state${path}, ${curState});';
var assertion = exports.assertion = 't.deepEqual(state, ${curState});';

@@ -11,0 +11,0 @@ var wrap = exports.wrap = 'import test from \'tape\';\nimport reducers from \'../../reducers\';\n\ntest(\'reducers\', (t) => {\n let state;\n ${assertions}\n t.end();\n});\n';

{
"name": "redux-devtools-test-generator",
"version": "0.2.2",
"version": "0.3.0",
"description": "Generate tests for redux devtools.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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