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.0-alpha-1 to 0.2.0-alpha-2

8

lib/index.js

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

var assertion = _props2.assertion;
var action = _props2.action;
var dispatcher = _props2.dispatcher;
var indentation = _props2.indentation;

@@ -138,3 +138,3 @@

}
if (typeof action === 'string') action = _es6template2.default.compile(action);
if (typeof dispatcher === 'string') dispatcher = _es6template2.default.compile(dispatcher);

@@ -160,3 +160,3 @@ var space = '';

if (isFirst) isFirst = false;else r += space;
r += action({
r += dispatcher({
action: !isVanilla ? (0, _javascriptStringify2.default)(actions[i].action) : this.getMethod(actions[i].action),

@@ -248,3 +248,3 @@ prevState: i > 0 ? (0, _javascriptStringify2.default)(computedStates[i - 1].state) : undefined

wrap: _react.PropTypes.oneOfType([_react.PropTypes.func, _react.PropTypes.string]),
action: _react.PropTypes.oneOfType([_react.PropTypes.func, _react.PropTypes.string]),
dispatcher: _react.PropTypes.oneOfType([_react.PropTypes.func, _react.PropTypes.string]),
assertion: _react.PropTypes.oneOfType([_react.PropTypes.func, _react.PropTypes.string]),

@@ -251,0 +251,0 @@ indentation: _react.PropTypes.number,

@@ -6,6 +6,6 @@ 'use strict';

var action = exports.action = function action(_ref) {
var _action = _ref.action;
var dispatcher = exports.dispatcher = function dispatcher(_ref) {
var action = _ref.action;
var prevState = _ref.prevState;
return 'state = reducers(' + prevState + ', ' + _action + ');';
return 'state = reducers(' + prevState + ', ' + action + ');';
};

@@ -24,2 +24,2 @@

exports.default = { name: name, assertion: assertion, action: action, wrap: wrap };
exports.default = { name: name, assertion: assertion, dispatcher: dispatcher, wrap: wrap };

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

var action = exports.action = 'state = reducers(${prevState}, ${action});';
var dispatcher = exports.dispatcher = 'state = reducers(${prevState}, ${action});';

@@ -13,2 +13,2 @@ var assertion = exports.assertion = 't.deepEqual(state${path}, ${curState});';

exports.default = { name: name, assertion: assertion, action: action, wrap: wrap };
exports.default = { name: name, assertion: assertion, dispatcher: dispatcher, wrap: wrap };

@@ -6,6 +6,6 @@ 'use strict';

var action = exports.action = function action(_ref) {
var _action = _ref.action;
var dispatcher = exports.dispatcher = function dispatcher(_ref) {
var action = _ref.action;
var prevState = _ref.prevState;
return 'state = reducers(' + prevState + ', ' + _action + ');';
return 'state = reducers(' + prevState + ', ' + action + ');';
};

@@ -24,2 +24,2 @@

exports.default = { name: name, assertion: assertion, action: action, wrap: wrap };
exports.default = { name: name, assertion: assertion, dispatcher: dispatcher, wrap: wrap };

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

var action = exports.action = 'state = reducers(${prevState}, ${action});';
var dispatcher = exports.dispatcher = 'state = reducers(${prevState}, ${action});';

@@ -13,2 +13,2 @@ var assertion = exports.assertion = 'expect(state${path}).toEqual(${curState});';

exports.default = { name: name, assertion: assertion, action: action, wrap: wrap };
exports.default = { name: name, assertion: assertion, dispatcher: dispatcher, wrap: wrap };

@@ -6,6 +6,6 @@ 'use strict';

var action = exports.action = function action(_ref) {
var _action = _ref.action;
var dispatcher = exports.dispatcher = function dispatcher(_ref) {
var action = _ref.action;
var prevState = _ref.prevState;
return 'state = reducers(' + prevState + ', ' + _action + ');';
return 'state = reducers(' + prevState + ', ' + action + ');';
};

@@ -24,2 +24,2 @@

exports.default = { name: name, assertion: assertion, action: action, wrap: wrap };
exports.default = { name: name, assertion: assertion, dispatcher: dispatcher, wrap: wrap };

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

var action = exports.action = 'state = reducers(${prevState}, ${action});';
var dispatcher = exports.dispatcher = 'state = reducers(${prevState}, ${action});';

@@ -13,2 +13,2 @@ var assertion = exports.assertion = 't.deepEqual(state${path}, ${curState});';

exports.default = { name: name, assertion: assertion, action: action, wrap: wrap };
exports.default = { name: name, assertion: assertion, dispatcher: dispatcher, wrap: wrap };

@@ -6,5 +6,5 @@ 'use strict';

var action = exports.action = function action(_ref) {
var _action = _ref.action;
return _action + ';';
var dispatcher = exports.dispatcher = function dispatcher(_ref) {
var action = _ref.action;
return action + ';';
};

@@ -25,2 +25,2 @@

exports.default = { name: name, assertion: assertion, action: action, wrap: wrap };
exports.default = { name: name, assertion: assertion, dispatcher: dispatcher, wrap: wrap };

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

var action = exports.action = '${action};';
var dispatcher = exports.dispatcher = '${action};';

@@ -13,2 +13,2 @@ var assertion = exports.assertion = 't.deepEqual(state${path}, ${curState});';

exports.default = { name: name, assertion: assertion, action: action, wrap: wrap };
exports.default = { name: name, assertion: assertion, dispatcher: dispatcher, wrap: wrap };

@@ -6,5 +6,5 @@ 'use strict';

var action = exports.action = function action(_ref) {
var _action = _ref.action;
return _action + ';';
var dispatcher = exports.dispatcher = function dispatcher(_ref) {
var action = _ref.action;
return action + ';';
};

@@ -26,2 +26,2 @@

exports.default = { name: name, assertion: assertion, action: action, wrap: wrap };
exports.default = { name: name, assertion: assertion, dispatcher: dispatcher, wrap: wrap };

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

var action = exports.action = '${action};';
var dispatcher = exports.dispatcher = '${action};';

@@ -13,2 +13,2 @@ var assertion = exports.assertion = 'expect(store${path}).toEqual(${curState});';

exports.default = { name: name, assertion: assertion, action: action, wrap: wrap };
exports.default = { name: name, assertion: assertion, dispatcher: dispatcher, wrap: wrap };

@@ -6,5 +6,5 @@ 'use strict';

var action = exports.action = function action(_ref) {
var _action = _ref.action;
return _action + ';';
var dispatcher = exports.dispatcher = function dispatcher(_ref) {
var action = _ref.action;
return action + ';';
};

@@ -25,2 +25,2 @@

exports.default = { name: name, assertion: assertion, action: action, wrap: wrap };
exports.default = { name: name, assertion: assertion, dispatcher: dispatcher, wrap: wrap };

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

var action = exports.action = '${action};';
var dispatcher = exports.dispatcher = '${action};';

@@ -13,2 +13,2 @@ var assertion = exports.assertion = 't.deepEqual(state${path}, ${curState});';

exports.default = { name: name, assertion: assertion, action: action, wrap: wrap };
exports.default = { name: name, assertion: assertion, dispatcher: dispatcher, wrap: wrap };
{
"name": "redux-devtools-test-generator",
"version": "0.2.0-alpha-1",
"version": "0.2.0-alpha-2",
"description": "Generate tests for redux devtools.",

@@ -20,12 +20,2 @@ "main": "lib/index.js",

},
"keywords": [
"redux",
"devtools",
"test",
"flux",
"react",
"hot reloading",
"time travel",
"live edit"
],
"author": "Mihail Diordiev <zalmoxisus@gmail.com> (https://github.com/zalmoxisus)",

@@ -32,0 +22,0 @@ "license": "MIT",

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