1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 07:10:05 +02:00
copilot/frontend/test/actions/index.js

26 lines
440 B
JavaScript
Raw Normal View History

2016-12-20 13:29:54 +02:00
const ReduxAva = require('redux-ava');
const test = require('ava');
const actions = require('@state/actions');
const {
actionTest
} = ReduxAva;
const {
updateRouter
} = actions;
test('updateRouter action', actionTest(updateRouter, {
2017-01-16 21:49:48 +02:00
type: '/UPDATE_ROUTER'
2016-12-20 13:29:54 +02:00
}));
test('updateRouter action', actionTest(updateRouter, {
transitionTo: '[Function]'
}, {
2017-01-16 21:49:48 +02:00
type: '/UPDATE_ROUTER',
2016-12-20 13:29:54 +02:00
payload: {
transitionTo: '[Function]'
}
}));