|
|
@ -131,9 +131,13 @@ describe('PortfolioCalculator', () => { |
|
|
|
|
|
|
|
|
const portfolioSnapshot = await portfolioCalculator.computeSnapshot(); |
|
|
const portfolioSnapshot = await portfolioCalculator.computeSnapshot(); |
|
|
|
|
|
|
|
|
expect(portfolioSnapshot.positions[0]).toMatchObject({ |
|
|
expect(portfolioSnapshot).toMatchObject({ |
|
|
fee: new Big('4.46'), |
|
|
positions: [ |
|
|
feeInBaseCurrency: new Big('3.94') |
|
|
{ |
|
|
|
|
|
fee: new Big('4.46'), |
|
|
|
|
|
feeInBaseCurrency: new Big('3.94') |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|