Skip to content

Commit 2d3f9a0

Browse files
committed
Fix a test
1 parent d3b7908 commit 2d3f9a0

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/miscRequests.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ const builtInIndicList = [];
1010

1111
async function fetchScanData(tickers = [], type = '', columns = []) {
1212
const { data } = await axios.post(`https://scanner.tradingview.com/${type}/scan`, {
13-
validateStatus,
1413
symbols: { tickers },
1514
columns,
16-
});
15+
}, { validateStatus });
1716

1817
return data;
1918
}

tests/search.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('Technical Analysis', () => {
3434
checkTA(await (await searchMarket('BINANCE:BTCUSD'))[0].getTA());
3535
});
3636

37-
it('gets TA for NASDAQ:AAPL', async () => {
38-
checkTA(await (await searchMarket('NASDAQ:AAPL'))[0].getTA());
37+
it('gets TA for "NASDAQ APPLE"', async () => {
38+
checkTA(await (await searchMarket('NASDAQ APPLE'))[0].getTA());
3939
});
4040
});

0 commit comments

Comments
 (0)