redux-devtools-test-generator
Advanced tools
Comparing version 0.2.2 to 0.3.0
@@ -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++; |
@@ -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", |
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
25129
19
388