mirror of
https://github.com/yldio/copilot.git
synced 2024-12-05 01:20:08 +02:00
22 lines
384 B
JavaScript
22 lines
384 B
JavaScript
|
const ReduxAva = require('redux-ava');
|
||
|
const test = require('ava');
|
||
|
|
||
|
const reducer = require('@state/reducers/app');
|
||
|
const actions = require('@state/actions');
|
||
|
|
||
|
const {
|
||
|
reducerTest
|
||
|
} = ReduxAva;
|
||
|
|
||
|
const {
|
||
|
updateRouter
|
||
|
} = actions;
|
||
|
|
||
|
test('updateReducer', reducerTest(reducer, {}, updateRouter({
|
||
|
transitionTo: '[Function]'
|
||
|
}), {
|
||
|
router: {
|
||
|
transitionTo: '[Function]'
|
||
|
}
|
||
|
}));
|