Browse Source

fix(test): revert cash spec expected values to correct leap year calculations

pull/6901/head
Andrea Bugeja 5 days ago
parent
commit
a9e14fc508
  1. 6
      apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-cash.spec.ts

6
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-cash.spec.ts

@ -241,7 +241,7 @@ describe('PortfolioCalculator', () => {
grossPerformance: new Big(0), grossPerformance: new Big(0),
grossPerformancePercentage: new Big(0), grossPerformancePercentage: new Big(0),
grossPerformancePercentageWithCurrencyEffect: new Big( grossPerformancePercentageWithCurrencyEffect: new Big(
'0.08211538461538461533' '0.08211603004634809014'
), ),
grossPerformanceWithCurrencyEffect: new Big(70), grossPerformanceWithCurrencyEffect: new Big(70),
includeInTotalAssetValue: false, includeInTotalAssetValue: false,
@ -271,9 +271,9 @@ describe('PortfolioCalculator', () => {
}, },
quantity: new Big(2000), quantity: new Big(2000),
symbol: 'USD', symbol: 'USD',
timeWeightedInvestment: new Big('912.48633879781420820235'), timeWeightedInvestment: new Big('912.47956403269754768392'),
timeWeightedInvestmentWithCurrencyEffect: new Big( timeWeightedInvestmentWithCurrencyEffect: new Big(
'852.4590163934426234665' '852.45231607629427792916'
), ),
valueInBaseCurrency: new Big(1820) valueInBaseCurrency: new Big(1820)
}); });

Loading…
Cancel
Save