describe('factory with matching http request and success response', () => factory({ url: '/leaderboard', }).then(res => testReducer(res, { data: DUMMY_PAYLOAD, failed: false, loading: false, loadedApiUrl: '/leaderboard', })));
describe('factory with matching http request and network failure', () => factory({ url: '/leaderboard', }).then(res => testReducer(res, { data: null, failed: true, loading: false, loadedApiUrl: null, })));
describe('factory without http request', () => factory().then(res => testReducer(res, {})));