From 3ac8510e30f00fc6ab32ca73c5b49346ffc82afe Mon Sep 17 00:00:00 2001
From: Bastien DUMONT <bdumont@grandlyon.com>
Date: Mon, 19 Aug 2024 16:27:08 +0200
Subject: [PATCH] chore: fix types errors

---
 src/components/Splash/SplashScreen.spec.tsx                 | 2 +-
 .../Splash/__snapshots__/SplashScreen.spec.tsx.snap         | 4 ++--
 src/services/initialization.service.spec.ts                 | 6 +-----
 3 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/components/Splash/SplashScreen.spec.tsx b/src/components/Splash/SplashScreen.spec.tsx
index a8c692fbc..44ec12dee 100644
--- a/src/components/Splash/SplashScreen.spec.tsx
+++ b/src/components/Splash/SplashScreen.spec.tsx
@@ -5,7 +5,7 @@ import SplashScreen from './SplashScreen'
 
 describe('SplashScreen component', () => {
   it('should be rendered correctly', () => {
-    const { container } = render(<SplashScreen initStep={InitSteps.CONSENT} />)
+    const { container } = render(<SplashScreen initStep={InitSteps.PROFILE} />)
     expect(container).toMatchSnapshot()
   })
 })
diff --git a/src/components/Splash/__snapshots__/SplashScreen.spec.tsx.snap b/src/components/Splash/__snapshots__/SplashScreen.spec.tsx.snap
index 635e4d733..9d42bdb59 100644
--- a/src/components/Splash/__snapshots__/SplashScreen.spec.tsx.snap
+++ b/src/components/Splash/__snapshots__/SplashScreen.spec.tsx.snap
@@ -23,7 +23,7 @@ exports[`SplashScreen component should be rendered correctly 1`] = `
         >
           <div
             class="splash-progress-bar-content"
-            style="left: -123%;"
+            style="left: -90%;"
           />
         </div>
       </div>
@@ -31,7 +31,7 @@ exports[`SplashScreen component should be rendered correctly 1`] = `
     <div
       class="step-label text-18-normal"
     >
-      splashscreen.step.undefined
+      splashscreen.step.profile
     </div>
     <div
       class="splash-logos-container"
diff --git a/src/services/initialization.service.spec.ts b/src/services/initialization.service.spec.ts
index db73da151..2b9ddb68e 100644
--- a/src/services/initialization.service.spec.ts
+++ b/src/services/initialization.service.spec.ts
@@ -127,11 +127,7 @@ jest.mock('./terms.service', () => {
 })
 
 describe('Initialization service', () => {
-  const initializationService = new InitializationService(
-    mockClient,
-    jest.fn(),
-    jest.fn()
-  )
+  const initializationService = new InitializationService(mockClient, jest.fn())
   beforeEach(() => {
     jest.clearAllMocks()
   })
-- 
GitLab