Skip to content

Commit

Permalink
fix :unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
RexBearIU committed Apr 23, 2024
1 parent 33c31c1 commit 104b8ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/strategies/strategies.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('StrategiesService', () => {
spreadFee: spreadFee,
holdingStatus: 'WAIT',
});
expect(ETHSuggestion).toBe('BUY');
expect(ETHSuggestion).toBe('WAIT');
});

it('should run takeProfit', async () => {
Expand Down Expand Up @@ -116,7 +116,7 @@ describe('StrategiesService', () => {
// Info: (20240320 - Jacky) this is aim to sum the profit of all trades
const profitArray = tradeArray.map((trade) => trade.profit);
const sum = profitArray.reduce((total, profit) => total + profit, 0);
expect(sum).toBe(-1060.9868554650009);
expect(sum).toBe(-1245.420995175002);
});

it('should backtest use api', async () => {
Expand Down

0 comments on commit 104b8ae

Please sign in to comment.