From afabe9525dbe94612f4d1fd870111af3a89e0ab3 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 23 Jun 2022 12:01:32 -0400 Subject: [PATCH] Fix test --- app/soapbox/reducers/__tests__/carousels.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/soapbox/reducers/__tests__/carousels.test.ts b/app/soapbox/reducers/__tests__/carousels.test.ts index 40b8f928a..45e87c8ff 100644 --- a/app/soapbox/reducers/__tests__/carousels.test.ts +++ b/app/soapbox/reducers/__tests__/carousels.test.ts @@ -12,6 +12,7 @@ describe('carousels reducer', () => { it('should return the initial state', () => { expect(reducer(undefined, {} as AnyAction)).toEqual({ avatars: [], + error: false, isLoading: false, }); }); @@ -26,7 +27,7 @@ describe('carousels reducer', () => { describe('CAROUSEL_AVATAR_SUCCESS', () => { 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 result = reducer(initialState, action);