@erickmerchant/framework
Advanced tools
Comparing version 13.1.1 to 13.1.2
{ | ||
"name": "@erickmerchant/framework", | ||
"version": "13.1.1", | ||
"version": "13.1.2", | ||
"description": "A simple data down, actions up framework.", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
16
test.js
@@ -26,3 +26,3 @@ const test = require('tape') | ||
target: initialElement, | ||
store: function (commit) { | ||
store (commit) { | ||
t.equal(commit.name, 'commit') | ||
@@ -44,3 +44,3 @@ | ||
}, | ||
component: function (app) { | ||
component (app) { | ||
t.deepEqual(Object.keys(app).length, 3) | ||
@@ -60,3 +60,3 @@ | ||
}, | ||
diff: function (target, newElement) { | ||
diff (target, newElement) { | ||
t.equal(target, initialElement) | ||
@@ -82,3 +82,3 @@ | ||
store: noopStore, | ||
component: function ({next}) { | ||
component ({next}) { | ||
next(function (target) { | ||
@@ -100,3 +100,3 @@ t.equal(target, initialElement) | ||
target: initialElement, | ||
store: function (commit) { | ||
store (commit) { | ||
commit(() => initialState) | ||
@@ -114,3 +114,3 @@ | ||
}, | ||
component: function ({dispatch, state}) { | ||
component ({dispatch, state}) { | ||
if (state === initialState) { | ||
@@ -134,3 +134,3 @@ process.nextTick(function () { | ||
target: initialElement, | ||
store: function (commit) { | ||
store (commit) { | ||
commit(() => '') | ||
@@ -146,3 +146,3 @@ | ||
}, | ||
component: function (app) { | ||
component (app) { | ||
t.equal(app.state, newState) | ||
@@ -149,0 +149,0 @@ |
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
8781