Skip to content

Commit b667c46

Browse files
committed
Fix unloaded chart.periods
1 parent 60b73e5 commit b667c46

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/simpleChart.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ describe('Simple chart session', async () => {
2121
timeframe: 'D',
2222
});
2323

24-
while (chart.infos.full_name !== 'BINANCE:BTCEUR') await utils.wait(100);
24+
while (
25+
chart.infos.full_name !== 'BINANCE:BTCEUR'
26+
|| !chart.periods.length
27+
) await utils.wait(100);
2528

2629
expect(chart.infos.full_name).toBe('BINANCE:BTCEUR');
2730
expect(

0 commit comments

Comments
 (0)