diff --git a/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-btceur-in-base-currency-eur.spec.ts b/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-btceur-in-base-currency-eur.spec.ts index f48d774ae..fd9c75fe7 100644 --- a/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-btceur-in-base-currency-eur.spec.ts +++ b/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') + } + ] }); }); });