sw-index-revalidate
Justin 2022-06-23 12:01:32 -04:00
rodzic 5f2e2c7fa4
commit afabe9525d
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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);