diff --git a/client/src/components/Map/components/SuperBlock.test.js b/client/src/components/Map/components/SuperBlock.test.js
index e91853597f..e602bcc282 100644
--- a/client/src/components/Map/components/SuperBlock.test.js
+++ b/client/src/components/Map/components/SuperBlock.test.js
@@ -10,8 +10,8 @@ import { SuperBlock } from './SuperBlock';
import mockChallengeNodes from '../../../__mocks__/challenge-nodes';
import mockIntroNodes from '../../../__mocks__/intro-nodes';
-function renderWithRedux(ui) {
- return render({ui});
+function renderWithRedux(ui, store) {
+ return render({ui});
}
test(' not expanded snapshot', () => {
@@ -52,7 +52,11 @@ test(' {
toggleSuperBlock: toggleSpy
};
- const { container, rerender } = renderWithRedux();
+ const store = createStore();
+ const { container, rerender } = renderWithRedux(
+ ,
+ store
+ );
expect(toggleSpy).not.toHaveBeenCalled();
expect(container.querySelector('.map-title h4')).toHaveTextContent(
@@ -66,7 +70,7 @@ test(' {
expect(toggleSpy).toHaveBeenCalledWith('Super Block One');
rerender(
-
+
);