diff --git a/src/components/Analysis/MonthlyAnalysis.spec.tsx b/src/components/Analysis/MonthlyAnalysis.spec.tsx index 4071f3e07c10947ae89bb1ab3ced03f0cfe2c2af..fc432cab6f73efc7b6d7e0860f3bb92bff75ab8f 100644 --- a/src/components/Analysis/MonthlyAnalysis.spec.tsx +++ b/src/components/Analysis/MonthlyAnalysis.spec.tsx @@ -35,7 +35,11 @@ describe('MonthlyAnalysis component', () => { }) const wrapper = mount( <Provider store={store}> - <MonthlyAnalysis analysisDate={DateTime.now()} /> + <MonthlyAnalysis + analysisDate={DateTime.fromISO('2021-07-01T00:00:00.000Z', { + zone: 'utc', + })} + /> </Provider> ).getElement() expect(wrapper).toMatchSnapshot() diff --git a/src/components/Analysis/__snapshots__/MonthlyAnalysis.spec.tsx.snap b/src/components/Analysis/__snapshots__/MonthlyAnalysis.spec.tsx.snap index 118820c61a253c6e352bfd249aacfe5dabdb00b5..9835494487c6bd07f9bfb47b8b08a91aa150839a 100644 --- a/src/components/Analysis/__snapshots__/MonthlyAnalysis.spec.tsx.snap +++ b/src/components/Analysis/__snapshots__/MonthlyAnalysis.spec.tsx.snap @@ -14,7 +14,7 @@ exports[`MonthlyAnalysis component should be rendered correctly 1`] = ` } > <MonthlyAnalysis - analysisDate={"2021-07-01T16:56:01.139+02:00"} + analysisDate={"2021-07-01T00:00:00.000Z"} /> </Provider> `; diff --git a/src/components/DateNavigator/DateNavigator.spec.tsx b/src/components/DateNavigator/DateNavigator.spec.tsx index 621cc60f6a7aa74afa73b269e53772572e0c9cf6..ade638c42578e6725027e83de255e03cd0aa39a0 100644 --- a/src/components/DateNavigator/DateNavigator.spec.tsx +++ b/src/components/DateNavigator/DateNavigator.spec.tsx @@ -36,7 +36,11 @@ describe('DateNavigator component', () => { }) const wrapper = mount( <Provider store={store}> - <DateNavigator currentAnalysisDate={DateTime.now()} /> + <DateNavigator + currentAnalysisDate={DateTime.fromISO('2021-07-01T00:00:00.000Z', { + zone: 'utc', + })} + /> </Provider> ).getElement() expect(wrapper).toMatchSnapshot() @@ -50,7 +54,11 @@ describe('DateNavigator component', () => { }) const wrapper = mount( <Provider store={store}> - <DateNavigator currentAnalysisDate={DateTime.now()} /> + <DateNavigator + currentAnalysisDate={DateTime.fromISO('2021-07-01T00:00:00.000Z', { + zone: 'utc', + })} + /> </Provider> ) await act(async () => { diff --git a/src/components/DateNavigator/__snapshots__/DateNavigator.spec.tsx.snap b/src/components/DateNavigator/__snapshots__/DateNavigator.spec.tsx.snap index a7b34dfbf392678f2f51fa7ee2b8c3e2193f5028..e58a9227a17de891a3736c3f46af672aaf4b52d8 100644 --- a/src/components/DateNavigator/__snapshots__/DateNavigator.spec.tsx.snap +++ b/src/components/DateNavigator/__snapshots__/DateNavigator.spec.tsx.snap @@ -14,7 +14,7 @@ exports[`DateNavigator component should be rendered correctly 1`] = ` } > <DateNavigator - currentAnalysisDate={"2021-07-01T16:57:12.679+02:00"} + currentAnalysisDate={"2021-07-01T00:00:00.000Z"} /> </Provider> `;