mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 15:20:06 +02:00
26 lines
448 B
JavaScript
26 lines
448 B
JavaScript
|
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, {
|
||
|
type: '/APP/UPDATE_ROUTER'
|
||
|
}));
|
||
|
|
||
|
test('updateRouter action', actionTest(updateRouter, {
|
||
|
transitionTo: '[Function]'
|
||
|
}, {
|
||
|
type: '/APP/UPDATE_ROUTER',
|
||
|
payload: {
|
||
|
transitionTo: '[Function]'
|
||
|
}
|
||
|
}));
|