diff --git a/app/soapbox/test_helpers.js b/app/soapbox/test_helpers.js index ae6d388b3..7f7052ae3 100644 --- a/app/soapbox/test_helpers.js +++ b/app/soapbox/test_helpers.js @@ -15,10 +15,15 @@ const middlewares = [thunk]; export const mockStore = configureMockStore(middlewares); // Create test component with i18n and Redux store, etc -export const createComponent = (children, props = { locale: 'en', store: mockStore(ImmutableMap()) }) => { +export const createComponent = (children, props = {}) => { + props = ImmutableMap({ + locale: 'en', + store: mockStore(ImmutableMap()), + }).merge(props); + return renderer.create( - - + + {children}