react-code-dataset
/
react-boilerplate
/internals
/templates
/containers
/App
/tests
/selectors.test.js
| import { makeSelectLocation } from 'containers/App/selectors'; | |
| describe('makeSelectLocation', () => { | |
| it('should select the location', () => { | |
| const router = { | |
| location: { pathname: '/foo' }, | |
| }; | |
| const mockedState = { | |
| router, | |
| }; | |
| expect(makeSelectLocation()(mockedState)).toEqual(router.location); | |
| }); | |
| }); | |