Browse Source

fix second transaction item

pull/236/head
Valentin Zickner 4 years ago
parent
commit
dca97fd9e0
  1. 6
      apps/api/src/app/core/portfolio-calculator.spec.ts

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

@ -1482,9 +1482,9 @@ describe('PortfolioCalculator', () => {
items: [ items: [
{ {
name: 'Mutual Fund A', name: 'Mutual Fund A',
quantity: new Big('100000'), // 100,000 quantity: new Big('1100000'), // 1,100,000
symbol: 'MFA', symbol: 'MFA',
investment: new Big('100000'), // 100,000 investment: new Big('1100000'), // 1,100,000
currency: Currency.USD, currency: Currency.USD,
firstBuyDate: '2010-31-12', firstBuyDate: '2010-31-12',
transactionCount: 2 transactionCount: 2
@ -1515,7 +1515,7 @@ describe('PortfolioCalculator', () => {
date: '2011-12-31', date: '2011-12-31',
grossPerformance: new Big('0.0979'), // 9.79% grossPerformance: new Big('0.0979'), // 9.79%
investment: new Big('1100000'), // 1 million + 100,000 investment: new Big('1100000'), // 1 million + 100,000
value: new Big('1192328') // 1,192,328 value: new Big('1192328.000000005') // 1,192,328
} }
]); ]);
}); });

Loading…
Cancel
Save