Skip to content

πŸ“ˆ Get real-time stocks from TradingView

Fix CodeFactor lint warnings in redirect test

Caio Lins2b94d348e6ed
diff --git a/tests/getUser-redirect.test.ts b/tests/getUser-redirect.test.ts
index 4d8faa5..505b2cb 100644
--- a/tests/getUser-redirect.test.ts
+++ b/tests/getUser-redirect.test.ts
@@ -6,7 +6,7 @@ describe('getUser redirect protection', () => {
let callCount = 0;
const axiosMock = {
get: async (url: string) => {
- callCount++;
+ callCount += 1;
const isA = url === 'https://www.tradingview.com/';
return {
data: '<html>no auth here</html>',
@@ -32,6 +32,7 @@ describe('getUser redirect protection', () => {
delete require.cache[miscPath];
try {
+ // eslint-disable-next-line global-require
const misc = require('../src/miscRequests');
await expect(
misc.getUser('fake_session', 'fake_signature'),