From a9e14fc5083f1ad7bf822c553ca67fd83a44722f Mon Sep 17 00:00:00 2001 From: Andrea Bugeja Date: Wed, 20 May 2026 09:33:19 +0200 Subject: [PATCH] fix(test): revert cash spec expected values to correct leap year calculations --- .../calculator/roai/portfolio-calculator-cash.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-cash.spec.ts b/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-cash.spec.ts index 078837506..217a67c49 100644 --- a/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-cash.spec.ts +++ b/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-cash.spec.ts @@ -241,7 +241,7 @@ describe('PortfolioCalculator', () => { grossPerformance: new Big(0), grossPerformancePercentage: new Big(0), grossPerformancePercentageWithCurrencyEffect: new Big( - '0.08211538461538461533' + '0.08211603004634809014' ), grossPerformanceWithCurrencyEffect: new Big(70), includeInTotalAssetValue: false, @@ -271,9 +271,9 @@ describe('PortfolioCalculator', () => { }, quantity: new Big(2000), symbol: 'USD', - timeWeightedInvestment: new Big('912.48633879781420820235'), + timeWeightedInvestment: new Big('912.47956403269754768392'), timeWeightedInvestmentWithCurrencyEffect: new Big( - '852.4590163934426234665' + '852.45231607629427792916' ), valueInBaseCurrency: new Big(1820) });