Skip to content

Commit 7068a3c

Browse files
committed
fix: resolve typescript error related to localization type
1 parent 8af863b commit 7068a3c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vis/test/component/citationmodal.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Provider } from "react-redux";
66
import LocalizationProvider from "../../js/components/LocalizationProvider";
77
import { STREAMGRAPH_MODE } from "../../js/reducers/chartType";
88
import { formatString } from "../../js/utils/string";
9+
import { Localization } from "../../js/i18n/localization";
910

1011
// Configuring the mock Redux store
1112
const mockStore = configureStore([]);
@@ -60,10 +61,11 @@ const getCitationText = (isStreamgraph: boolean) => {
6061
const setup = (isStreamgraph: boolean) => {
6162
const mockStoreData = getMockStoreData(isStreamgraph);
6263
const store = mockStore(mockStoreData);
64+
const localization = mockStoreData.localization as Localization;
6365

6466
render(
6567
<Provider store={store}>
66-
<LocalizationProvider localization={mockStoreData.localization}>
68+
<LocalizationProvider localization={localization}>
6769
<CitationModal />
6870
</LocalizationProvider>
6971
</Provider>

0 commit comments

Comments
 (0)