joyent-portal/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]'
}
}));