Skip to content

Commit

Permalink
fix:unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
RexBearIU committed Apr 22, 2024
1 parent 0457a02 commit fc72961
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/price_ticker/price_ticker.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('PriceTickerService', () => {
expect(await service.getCandlesticks()).toStrictEqual([1, 2, 3, 4, 5]);
});

it('should return an array of candlestick', async () => {
it('should store an array of candlestick', async () => {
let etharr = [];
for (let i = 0; i < 11; i++) {
const begin = Date.now() - 90000000 * (i + 1);
Expand All @@ -50,8 +50,6 @@ describe('PriceTickerService', () => {
etharr = tempArr.concat(etharr);
}
const etharrJson = JSON.stringify(etharr);
// console.log(etharr);
// use fs to write the etharr to a file
fs.writeFileSync('src/strategies/etharr.txt', etharrJson);
});
});
Loading

0 comments on commit fc72961

Please sign in to comment.