From c67afd0a516f9009c4650dd19e0e2472ad408a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sven=20G=C3=BCnther?= Date: Sun, 15 Feb 2026 10:43:04 +0100 Subject: [PATCH] fix failing test --- apps/api/src/app/portfolio/portfolio.service.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/src/app/portfolio/portfolio.service.spec.ts b/apps/api/src/app/portfolio/portfolio.service.spec.ts index 3c7a293c5..cd7e6f463 100644 --- a/apps/api/src/app/portfolio/portfolio.service.spec.ts +++ b/apps/api/src/app/portfolio/portfolio.service.spec.ts @@ -113,7 +113,8 @@ describe('PortfolioService', () => { getSnapshot: jest.fn().mockResolvedValue({ dividendYieldTrailingTwelveMonths: 0.0123, currentValueInBaseCurrency: new Big(500), - totalInvestment: new Big(400) + totalInvestment: new Big(400), + totalInvestmentWithCurrencyEffect: new Big(400) }), getStartDate: jest.fn().mockReturnValue(new Date('2023-01-01')) } as unknown as PortfolioCalculator; @@ -166,6 +167,7 @@ describe('PortfolioService', () => { liabilitiesInBaseCurrency: 6, totalBuy: 100, totalInvestment: 400, + totalInvestmentValueWithCurrencyEffect: 400, totalSell: 40, totalValueInBaseCurrency: 1494 });