Merge pull request #151 from yoshuawuyts/fix-view-test

test: fix broken hooks test
This commit is contained in:
Yoshua Wuyts
2016-07-12 14:09:16 +02:00
committed by GitHub
+1 -1
View File
@@ -15,7 +15,7 @@ test('hooks', function (t) {
t.deepEqual(action, {foo: 'bar'}, 'onAction: action data') t.deepEqual(action, {foo: 'bar'}, 'onAction: action data')
t.equal(state.clicks, 0, 'onAction: current state: 0 clicks') t.equal(state.clicks, 0, 'onAction: current state: 0 clicks')
t.equal(name, 'click', 'onAction: action name') t.equal(name, 'click', 'onAction: action name')
t.equal(caller, '/', 'onAction: caller name') t.equal(caller, 'view: /', 'onAction: caller name')
t.equal(typeof createSend, 'function', 'onAction: createSend fn') t.equal(typeof createSend, 'function', 'onAction: createSend fn')
}, },
onStateChange: function (action, state, prev, createSend) { onStateChange: function (action, state, prev, createSend) {