contiago-toolbar
Version:
One of the options for outputting content from contiago xml-server
16 lines (13 loc) • 405 B
JavaScript
import { fromJS } from 'immutable';
import { makeSelectLocation } from 'containers/App/selectors';
describe('makeSelectLocation', () => {
it('should select the location', () => {
const route = fromJS({
location: { pathname: '/foo' },
});
const mockedState = fromJS({
route,
});
expect(makeSelectLocation()(mockedState)).toEqual(route.get('location').toJS());
});
});