Browse Source

Set up test

pull/5778/head
Thomas Kaul 5 days ago
parent
commit
9d1cc8a3f7
  1. 10
      apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-btceur-in-base-currency-eur.spec.ts

10
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-btceur-in-base-currency-eur.spec.ts

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

Loading…
Cancel
Save