UNPKG

@bhupinderanand/react-redux-saga-boilerplate

Version:
25 lines (20 loc) 652 B
import { selectApp, selectGitHub, selectUser } from 'selectors'; import { configStore } from 'store'; describe('selectors', () => { const { store } = configStore(); describe('selectApp', () => { it('should return the app', () => { expect(selectApp(store.getState())).toMatchSnapshot(); }); }); describe('selectGitHub', () => { it('should return the github', () => { expect(selectGitHub(store.getState())).toMatchSnapshot(); }); }); describe('selectUser', () => { it('should return the user', () => { expect(selectUser(store.getState())).toMatchSnapshot(); }); }); });