File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ const FileNode = ({
9393 const { t } = useTranslation ( ) ;
9494 const fileNameInput = useRef ( null ) ;
9595 const fileOptionsRef = useRef ( null ) ;
96- const dispatch = useDispatch ( ) ;
9796
9897 const handleFileClick = ( event ) => {
9998 event . stopPropagation ( ) ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import configureStore from 'redux-mock-store' ;
33import thunk from 'redux-thunk' ;
4+ import { useTranslation } from 'react-i18next' ;
45import { setupServer } from 'msw/node' ;
56import { rest } from 'msw' ;
67import { act } from 'react-dom/test-utils' ;
@@ -26,8 +27,9 @@ afterAll(() => server.close());
2627describe ( '<Sketchlist />' , ( ) => {
2728 const mockStore = configureStore ( [ thunk ] ) ;
2829 const store = mockStore ( initialTestState ) ;
30+ const { t } = useTranslation ( ) ;
2931
30- let subjectProps = { username : initialTestState . user . username } ;
32+ let subjectProps = { username : initialTestState . user . username , t } ;
3133
3234 const subject = ( ) =>
3335 reduxRender ( < SketchList { ...subjectProps } /> , { store } ) ;
Original file line number Diff line number Diff line change @@ -107,7 +107,12 @@ const DashboardView = () => {
107107 case TabKey . sketches :
108108 default :
109109 return (
110- < SketchList key = { username } mobile = { mobile } username = { username } />
110+ < SketchList
111+ key = { username }
112+ mobile = { mobile }
113+ username = { username }
114+ t = { t }
115+ />
111116 ) ;
112117 }
113118 } ;
You can’t perform that action at this time.
0 commit comments