This commit is contained in:
jpellizzari
2017-01-13 11:33:27 -08:00
parent cb7b9da5ff
commit a2fb6428d5
3 changed files with 38 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
import { translateUrlParams } from '../router-utils';
describe('router-utils', () => {
it('translates a query to a view state', () => {
// const dispatch = createSpy();
// const state = Object.assign({}, initialState, {
// nodes: [{node_1: 'some_id'}]
// });
// window.location.search = '?node=node_1';
// const page = getRouter(dispatch, state);
// expect(page).toBeTruthy();
translateUrlParams('?key=value&otherkey=othervalue', []);
});
});