sforkowany z mirror/soapbox
Fix test
rodzic
5f2e2c7fa4
commit
afabe9525d
|
@ -12,6 +12,7 @@ describe('carousels reducer', () => {
|
||||||
it('should return the initial state', () => {
|
it('should return the initial state', () => {
|
||||||
expect(reducer(undefined, {} as AnyAction)).toEqual({
|
expect(reducer(undefined, {} as AnyAction)).toEqual({
|
||||||
avatars: [],
|
avatars: [],
|
||||||
|
error: false,
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -26,7 +27,7 @@ describe('carousels reducer', () => {
|
||||||
|
|
||||||
describe('CAROUSEL_AVATAR_SUCCESS', () => {
|
describe('CAROUSEL_AVATAR_SUCCESS', () => {
|
||||||
it('sets the next state', () => {
|
it('sets the next state', () => {
|
||||||
const initialState = { isLoading: true, avatars: [] };
|
const initialState = { isLoading: true, avatars: [], error: false };
|
||||||
const action = { type: CAROUSEL_AVATAR_SUCCESS, payload: [45] };
|
const action = { type: CAROUSEL_AVATAR_SUCCESS, payload: [45] };
|
||||||
const result = reducer(initialState, action);
|
const result = reducer(initialState, action);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue