@bhupinderanand/react-redux-saga-boilerplate
Version:
Boilerplate with React and Redux with Redux Saga
25 lines (20 loc) • 652 B
text/typescript
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();
});
});
});