Skip to content

Commit 062cfe5

Browse files
committed
Improve tests
1 parent f600505 commit 062cfe5

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

tests/customChartTypes.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ describe('CustomChartTypes', () => {
7878
) await utils.wait(100);
7979

8080
expect(chart.infos.full_name).toBe('BINANCE:BTCEUR');
81+
expect(chart.periods.length).toBeGreaterThan(0);
8182
});
8283

8384
it('sets chart type to Kagi', async () => {
@@ -100,7 +101,7 @@ describe('CustomChartTypes', () => {
100101
) await utils.wait(100);
101102

102103
expect(chart.infos.full_name).toBe('BINANCE:ETHEUR');
103-
expect(chart.periods.length).toBe(100);
104+
expect(chart.periods.length).toBeGreaterThan(0);
104105
});
105106

106107
it('sets chart type to PointAndFigure', async () => {

tests/simpleChart.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ describe('Simple chart session', async () => {
6161

6262
console.log('Chart type set');
6363
expect(chart.infos.full_name).toBe('BINANCE:ETHEUR');
64+
expect(chart.periods.length).toBeGreaterThan(0);
6465
});
6566

6667
it('closes chart', async () => {

0 commit comments

Comments
 (0)