diff --git a/src/components/__tests__/InfoComponent.spec.ts b/src/components/__tests__/InfoComponent.spec.ts
index 056f2c95da3f93665abbbbed3c8382c154cc1b4b..2459454155d86aa15ae2cec8fcba1176f7ef03c7 100644
--- a/src/components/__tests__/InfoComponent.spec.ts
+++ b/src/components/__tests__/InfoComponent.spec.ts
@@ -15,7 +15,7 @@ describe('InfoComponent', () => {
     expect(quote.text()).toBe('Sparetips: Sett av et jevnt beløp hver måned på sparekonto eller lignende.');
 
     // Assuming totalSavings is a number, convert it to the expected string format for assertion
-    const expectedTotalSavingsText = `VÃ¥re brukere har spart til sammen ${wrapper.vm.totalSavings} nok`;
+    const expectedTotalSavingsText = `VÃ¥re brukere har spart til sammen ${(wrapper.vm as any).totalSavings} nok`;
     expect(totalSavings.text()).toBe(expectedTotalSavingsText);
   });
-});
\ No newline at end of file
+});