Browse Source

Improve handling of excluded holdings

pull/7828/head
Thomas Kaul 3 days ago
parent
commit
1edb6a71c5
  1. 6
      apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-valuable.spec.ts

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

@ -108,7 +108,8 @@ describe('PortfolioCalculator', () => {
activities,
calculationType: PerformanceCalculationType.ROAI,
currency: 'USD',
userId: userDummyData.id
userId: userDummyData.id,
usePortfolioSnapshotCache: false
});
const portfolioSnapshot = await portfolioCalculator.computeSnapshot();
@ -169,6 +170,9 @@ describe('PortfolioCalculator', () => {
totalInvestmentValueWithCurrencyEffect: 500000
})
);
expect(PortfolioSnapshotServiceMock.jobsStore.size).toBe(0);
expect(RedisCacheServiceMock.cache.size).toBe(0);
});
});
});

Loading…
Cancel
Save