Skip to content

Commit 2b94d34

Browse files
clins1994claude
andcommitted
Fix CodeFactor lint warnings in redirect test
- Replace ++ with += 1 (no-plusplus) - Add eslint-disable for global-require (needed for cache patching) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6f1e076 commit 2b94d34

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/getUser-redirect.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('getUser redirect protection', () => {
66
let callCount = 0;
77
const axiosMock = {
88
get: async (url: string) => {
9-
callCount++;
9+
callCount += 1;
1010
const isA = url === 'https://www.tradingview.com/';
1111
return {
1212
data: '<html>no auth here</html>',
@@ -32,6 +32,7 @@ describe('getUser redirect protection', () => {
3232
delete require.cache[miscPath];
3333

3434
try {
35+
// eslint-disable-next-line global-require
3536
const misc = require('../src/miscRequests');
3637
await expect(
3738
misc.getUser('fake_session', 'fake_signature'),

0 commit comments

Comments
 (0)