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